I am using xcode4.2 and inside appDidFinishLaunching i am initializing navigationController with my first view and sets the rootViewController of app to navigationController.I want to show the first view every time when app resumes. How i can i do this?
I am using xcode4.2 and inside appDidFinishLaunching i am initializing navigationController with my first
Share
The easiest way I can think of is not using backgrounding. If you set the
UIApplicationExitsOnSuspendkey in Info.plist, when the user press the home button, your app will quit and next time it is launched it will start over and not resumed from where it was.Otherwise, you can define
– applicationWillEnterForeground:and– applicationDidBecomeActive:to go back to your first view whenever the app is resumed. Have a look at the UIApplicationDelegate reference and Multitasking states.