Evan
Evan

Reputation: 1082

What can I do to make an image appear before my app launch?

I´m doing an app for iPhone in objective-c, and before my app launches I want a splash screen to appear.

Thanks!

Upvotes: 1

Views: 310

Answers (4)

Mr. Berna
Mr. Berna

Reputation: 10645

As veredesmaralad answered, you can use an application launch image, but it's not really intended for use as a splash screen. It's intended to give the user immediate feedback that the app is launching, yet give the app some time to initialize. This image is displayed by the OS until your app puts its window on screen. The display time will vary from device to device.

If I were trying to do something more involved such as displaying the splash screen for a longer time, or animating the splash screen, I would display a view for the splash screen, then move on to the main app. I might just have my main UIViewController show the view, and then have an NSTimer tell the controller when to replace the view with the next view (e.g. the main user interface). For a more involved animated splash screen I might use a dedicated UIViewController to run that animation. Then when the animation completes I'd have the splash screen's controller load the next controller.

Upvotes: 0

DCH
DCH

Reputation: 125

You just need to rename any image you want to "Default.png" and just add it in your project. That's all. Application will display that image while your app is loading.

Upvotes: 1

verdesmarald
verdesmarald

Reputation: 11866

I think you are looking for Application Launch Images.

Upvotes: 4

Joseph Hansen
Joseph Hansen

Reputation: 13279

First off, this is called a "splash screen" and you may want to read up about it from somewhere like Wikipedia.

The answer to this question will depend heavily on what programming language you're using. If you could provide better explanation, a better answer can be given.

Upvotes: 0

Related Questions