1
votes

My app uses a splash screen as per client requirement. I need to display this splash screen at every launch when user presses the home button again. Pressing app I need to load app from beginning or else display splash at a specific time interval.

Please help me to solve this.

1

1 Answers

0
votes

You can disable the Multitasking capability of the app and make it start from scratch each time you re-open the app from the home screen.

@implementation MyAppDelegate

- (void) applicationDidEnterBackground:(UIApplication *)application {
      exit(0);
}

@end

OR See "Opting Out of Background Execution" in the iOS Application Programming Guide:

"...you can explicitly opt out of the background execution model by adding the UIApplicationExitsOnSuspend key to your application’s Info.plist file and setting its value to YES."