I am trying to find the number of characters that a UILabel can hold.I am using
lbl_Text = [[UILabel alloc]initWithFrame:CGRectMake(0,15,290,320)];
lbl_Text.lineBreakMode = UILineBreakModeWordWrap;
lbl_Text.numberOfLines = 20;
lbl_Text.font = [UIFont fontWithName:@"Helvetica-Bold" size:14];
to set the font and font si...
Hi
I need to record the stream of an mp3 source simultaneously while it is playing. I'm am using matt gallagher's classes http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html
I can't find out how to do this and I need some help please.
Thank you.
...
Hello all,
Is it possible to make a playlist for MPMoviePlayer? all videos are from internet.
While player runs, when it comes to 1 minute position i want to play another video from URL.
second video is an ads clip. after ads clip finishes, main video should continue.
is it possible? i saw some ipad apps, like hulu plus.
what steps sho...
I am calling UIGraphicsGetCurrentContext() in -drawRect: of a UIView inherited class. Then view is added on an scrollView. In -scrollViewDidEndZooming: withView: atScale: I am initiating the view's -setNeedsDisplay.
So calling UIGraphicsGetCurrentContext() gives memory warning.
Please anyone help me in fixing this.
...
Hello, I'm new in this. I work in a litle project that was aborted because the developer go to an other project. And now I'am trying to make changes but i have and error and i don`t know what is.
The error appers when I compile in the device, but in simulator works correctly.
This is the debug-console message.
2010-08-17 11:35:24.795 W...
hi i am new to iphone. what i did is displaying 20 images on buttons and when i click the button selected image will be displayed on imageview. when ever i am rotating the simulator to landscape imageview is not adjusted. it is IBOuteled imageview . how can i change the imageview size pls help me post some code.thank u
...
Hi,
The 1.1 update of my App got rejected. Then, after making a change I uploaded it using the Application Loader, during uploading the Application Loader froze and I had to kill it myself. Then the status changed to “Upload Received”. So it seems the binary was uploaded anyway.
But now, it has been in “Upload Received” for 6 days (144...
Hey all,
Is it possible to create the layered structure (for eg. like the ones you see in photoshop) in an iPhone app.
Something like an image is being displayed and on top of it (a different layer) are controls like rotate...etc...
If yes, could anyone tell me how its done?
Any suggestion appreciated.
Thanks!
...
Hello All,
I use the following UITTabBar and UINavigationBar built-in code to place my own custom image on the background of Tabbar and Navigation bar. It works great in my iPhone 3.0 application. Now, i am trying to convert my iPhone 3.0 application to iOS4.0. I ran the same project in Xcode 3.2.3(for iOS 4.0) now but unable to view my...
Hi all,
I have a method that returns CGColorRef instance created by CGColorCreate method. I need to autorelease the color return from this method. Does anyone know how to do this?
//red,green,blue are from 0-255 range
+(CGColorRef) getColorFromRed:(int)red Green:(int)green Blue:(int)blue Alpha:(int)alpha
{
CGFloat r = (CGFloat) re...
Hello, I have implemented video capturing by:
IImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
NSArray *sourceTypes = [UIImagePickerController availableMediaTypesForSourceType:imagePicker.sourceType];
if ([sourceTypes containsObject:(NS...
Hi to all,
i have tried the coding for interruption handling when i get a phone call on my iphone.
- (void) audioPlayerBeginInterruption: (AVAudioPlayer *) player {
if (playing) {
playing = NO;
interruptedOnPlayback = YES;
[self updateUserInterface];
}
}
- (void) audioPlayerEndInterrupti...
Greetings!
I was wondering how I could use javascript code on an iPhone application I was developing. this tutorial illustrated how to use windowScriptObjects for Cocoa application. However, I have been unable to locate something similar for UIWebViews.
does this functionality actually exist in Cocoa touch? and if yes, could anyone poi...
I want to develop iphone alarm application, but when i googled it, i found that iphone doesn't allow access to alarm settings. But at the same time, i have found few applications like "Alarm!","GoodNiteLite" in apple store, which does exactly same thing. You can set alarm, add/remove alarm, select alarm tone, set duration, it is exactly ...
how to do undo on touch event...
I draw a line using touchesBegan,touchesMoved and touchesEnded.....
Now I want to do undo operation to get my previous state on iphone....
any one can help me how do undo operations on iphone?
thanks in advance....
...
I have a problem with objects not being deallocated.
It would be of great help if I could find out what objects are still referencing the object that should be deallocated.
How can I get such information?
...
Hello all,
i am developing app for my iphone most of her was completed.
now i want to add another button but i want it to be spaciel button.
the shap of the button will be like radar screen and when i press it i want from the button to spin around.
can someone help me with guidlines.
thanks
...
Hi,
I am trying to speed up my application download speed. I used Asynchronous NSURLConnection to download contents from the server, it was working fine with one connection.
I use the code from this post to implement multiple delegate objects. http://stackoverflow.com/questions/203294/multiple-nsurlconnection-delegates-in-objective-c
...
Hey All
Im getting this annoying error and tried every i know but in this case it hasnt helped.
I have in my delegate....
vid_name = [push objectForKey:@"vid"];
(in the console .... vid = "video" )
now in my normal page i have
NSString *videoName = [(MissileAppDelegate *)[[UIApplication sharedApplication] delegate] vid_name];
NS...
Hello
I am running my application through xcode's static analyzer and it pointed out that I had a potential leak in a file:
MyAppDelegate *delegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
So after the code I do [delegate release]. This results in an EXC BAD ACCESS when the view controller I am doing this in ...