iphone

Last UIView in navigation based app is shown on startup

Hello there, strange things happen in my iPhone app. Since a not defined point in time when I start my navigation based app (it doesn't matter if in simulator or on the device) the last UIView (the one that the user reaches last) is shown on startup. After the app is loaded it switches automatically to the RootViewController's view. It'...

iPhone : Best way to detect the end of UIImageView image sequence animation

We know that UIImageView has a very nice support for image sequence animation. We can easily create an array of UIImage objects, set the animationImages property, configure animation duration, repeat count etc. and then just fire. But there seems to be no way to know when this animations has ended. Say I have 10 images and then I want t...

CFBundleExectuable Error

Can’t install application The application at /Users/myname/Documents/SDK/iPhoneApplications/x/build/Debug-iphoneos/x.app does not specify a CFBundleExecutable I don't know what this means or how to fix it. Can anyone help? It only occurs when trying to build to a device - it is an iPhone 3G running 4.1 and I am using the latest SDK whi...

What method is called when application appears from background on iPhone?

Hi everyone, I know that when iphone application goes to background, these methods are called: - (void)applicationDidEnterBackground:(UIApplication *)application - (void)applicationWillResignActive:(UIApplication *)application what method(s) are called when application appears from background? are there any methods in ViewController...

my old xcode was disappear after i downloaded new version xcode 3.2.4

i hav xcode 3.2.2 and when i was downloaded new version and dragged it to Dock the old one 3.2.2. is get disappeared .. i dont know whether it hidden or removed ... ...

search within NSstring

hi, i have a NSString that is of the follow : Hello (\n) (\n) No.: 123456789123 Age: 21 (\n) Country: xxx how can i search within a string so that i get "123456789123" as a new string? thx in advance ...

What does "update current target for ipad" actually do?

It doesn't seem to do much... :/ I don't have any (apart from MainWindow) XIB files. Thanks ...

iTunesConnect Technical users can upload binary files ?

Hi, i'm a new iPhone developer and i'm working for a new company which ordered me an application. They are registered with the developer account and they added me with a Technical user role! My application is ready, now i need to implement and test the in-app purchase functionality because inside this app there are buyable contents. I ha...

how to implement search functionality on tableview in iphone

i have a tableview. i loaded the rules into the table of search view controller. when i type character into searchbar how to implement search functionality and how to add it to the rulesArray. i have an array 'rulesArray" with all rules like below. [rulesArray addObject:[rules objectAtIndex:k]]; Rule is a class. Also I want to add rul...

iPhone playback AudioQueue stops/fails to continue after pausing at a breakpoint during debugging

For some reason, it seems that stopping at a breakpoint during debugging will kill my audio queue playback. AudioQueue will be playing audio output. Trigger a breakpoint to pause my iPhone app. Subsequent resume, audio no longer gets played. ( However, AudioQueue callback functions are still getting called.) ( No AudioSession or AudioQ...

Modal View Controller Won't Start in Landscape Mode

Hi all. I'm at a loss... I have a navigation based app that has a detail view (UIWebView) with action buttons across the bottom in a UIToolbar. I want to add 'notes' when the 'notes' button is pushed. Everything works fine when the webview is in portrait mode. I press the notes button, the modal view opens fine and works great. The...

How do pass forms-based authentication form iphone app to website?

I am working on creating an iphone application which logins to we website and retrieves a table, and displays the content within the app. To view the table a Login is required. It seems the site is using Form-Baseds Authentication. WebSite's Login Screen So How do I pass the login ID and pass from xcode to the to the site and retain the...

UISegmentedControl in Mail app

How do I get a UISegmentedControl that is like the one in the Mail App, so that it is the same colour as UIToolbar buttons (as if both segments were in the selected state). I want to use the segmented control for exactly the same purpose as Mail. (on the iPad, so a grey not blue color) ...

On clicks the button to change the view in iPhone?

Hi friends, In my apps, i have one tableview with footer view. In footer view, i have created one button. On clicks the footer view button, the next 10 details are parsing and displayed in the table view. I have used one temporary view for displaying when clicks the next button in the footer view. The temporary view is displayed only, p...

What is the maximum image resolution supported by the UIWebView?

I would like to put a giant image in a UIWebView and let the user pan around in it. However it seems that the UIWebView automatically will scale the image to save memory? Is this correct? ...

calling a method of current class from a method of another class

Hi, I am working on a class A which has a method -(void)DoSmthing1. I am making a call to another method-(void)DoSmthing2 in class B. Now after doing some operations in class B, the method is supposed to call back a method-(void)DoSmthing3 previous class. How will i call a method of current class from another class?? Can someone pleas...

iPhone: Real-time video color info, focal length, aperture?

Is there any way using AVFoundation and CoreVideo to get color info, aperture and focal length values in real-time? Let me explain. Say when I am shooting video I want to sample the color in a small portion of the screen and output that in RGB values to the screen? Also, I would like to show what the current aperture is set at. Does ...

NSDateFormatter when iPhone set to 12-hour clock

I'm using an NSDateFormatter to format an NSDate to be in the format "HH:mm 'on' dd MMMM YYYY". This is the code I've written: [dateFormatter setDateFormat:@"HH:mm 'on' dd MMMM YYYY"]; [dateFormatter setLocale:[NSLocale currentLocale]]; Then I'm updating a label to display "Data from 12:45 on 22 September 2010", using the method stri...

DTMF # and * workaround in iOS4?

Hello all. I have read all the posts about DTMF and iPhone. I know that the characters "#" and "*" are disallowed by the SDK for security reasons. I have tried the stringByAddingPercentEscapesUsingEncoding: and the FURLCreateStringByAddingPercentEscapes workarounds. It is not possible, in my case, to generate the DTMF tones as one pos...

Switching nib files

I have a View Controller inside my MainWindow.xib file that loads the nib "Cover" when loaded. Cover (and the rest of my pages) is simply a nib file containing it's Owner, First Responder and a View. There is also an associated class declaration. In MainViewController.m I have: - (void)viewDidLoad { [[NSBundle mainBundle] loadNib...