user956224
user956224

Reputation:

Can I have set the time for Launch image(app Start up)..? I mean,for 5 seconds

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

Answers (4)

Akshay
Akshay

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

Ajeet Pratap Maurya
Ajeet Pratap Maurya

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

Alessandro Vendruscolo
Alessandro Vendruscolo

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

SimplyKiwi
SimplyKiwi

Reputation: 12444

In your app delegate's didFinishLaunching method, do:

sleep(5);

Upvotes: 0

Related Questions