amar
amar

Reputation: 4345

How can I change the amount of time the default screen appears in an iPhone app?

How can I change the time the default screen appears in an iPhone app? I am talking about the Default.png image which I have copied in the project but it appears for a longer time then required. How can i change that?

Upvotes: 1

Views: 90

Answers (4)

Prajoth
Prajoth

Reputation: 900

You can do sleep(time) in your applicationDidFinishLaunchingWithOptions: replacing the time with the number of seconds delay you want in your app.

Upvotes: 0

Max Woolf
Max Woolf

Reputation: 4058

You could use an NSTimer once the app has loaded to show an UIImageView for a set amount of time and then remove it from the main view. It's not the most elegant of solutions but it'll do what you want.

Upvotes: 0

mattjgalloway
mattjgalloway

Reputation: 34912

You can't change that. It's shown until the applicationDidFinishLaunchingWithOptions: finishes basically. So if it's on the screen for a long time, then you're probably doing some heavy lifting in there and you should consider doing that on a background thread after the app has launched.

Upvotes: 1

Matt Fellows
Matt Fellows

Reputation: 6522

You can't reduce it unfortunately - that is displayed until the [application: didFinishLaunchingWithOptions:] method has returned. So if you aren't doing anything inside that method, there is no way to help unfortunately.

Upvotes: 1

Related Questions