Alex Rivera | Logout

How can I display a splash screen for longer on an iPhone?

Asked 2009-02-16T13:41:12.300
50

How can I display a splash screen for a longer period of time than the default time on an iPhone?

Edit
Report

1 Answer

18

in your appDelegate , theres a method called applicationDidFinishedLaunching use a sleep function. Pass a digit in the sleep function for the no. of seconds you want to hold screen.


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{    
    [window makeKeyAndVisible];
    [window addSubview:viewController.view];
    sleep(5);
    return YES;
}

I searched so much for this thing and everybody gave their own complex point of view. I couldn't find a simple way that would just let me do it.

KISS ( Keep it simple and Smart :) I avoided the actual as its offensive.

answered 2011-01-31T19:49:04.317

Your Answer