Reputation:
I have added launch image in my application in info.plist. So,may I know is it possible to set the time for launching application for 5 seconds.Thanks
Upvotes: 0
Views: 395
Reputation: 2983
Yes. You can set time for launch image. Below is code. It may help you.
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(onLaunchExpire) userInfo:nil repeats:NO];
Use this and let me know for more details..
Upvotes: 0
Reputation: 4254
In your App delegate class, in the didFinishLaunchingWithOptions
method.
[NSThread sleepForTimeInterval:5.0];
This will make your app waiting for 5 sec.
Upvotes: 0
Reputation: 14875
You can definitely do that, but you shouldn't. The user will be staring at an useless splash screen just for nothing.
Upvotes: 3
Reputation: 12444
In your app delegate's didFinishLaunching method, do:
sleep(5);
Upvotes: 0