I have four UIViewController for displays different purpose. If i launch the app it displays Delegate function. If i go to second or third viewcontroller then close the app. Again open the app, it displays third or second viewcontroller. I need to start app from delegate. How to do?

有帮助吗?

解决方案

In plist file add one more field

Application does not run in background : make it true

enter image description here

其他提示

Just pop your navigationcontroller to root view in your applicationDidBecomeActive method.

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    [navigationCtrl popToRootViewControllerAnimated:NO];
}
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top