iOS How to make a splash screen (ios 5) Xcode 4.4

daproject85

macrumors member
Original poster
Apr 13, 2011
37
0
Hi Forum,

I was wondering if anyone can show me the RIGHT way to make and control a splash screen?

I have read a few places about doing it in the appdelegate and other say make a file called Default@2x.png..

I appreciate the help
 

Ides

macrumors member
Mar 27, 2012
95
0
If you want an image that appears each time you start the app, then you just need an image in your project called Default.png (also Default@2x.png).

You should know that Apple says that technically splash screens aren't allowed and that Default.png should be an image that simply shows all of the static parts of your app, i.e. an empty tableview. But they don't seem to enforce this rule at all, so I wouldn't worry about it.
 

daproject85

macrumors member
Original poster
Apr 13, 2011
37
0
And What's the best way to apply effects to it. Like fading or controlling how long it lasts, or making it go away when ever you are done retrieving data
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
8,566
3,990
And What's the best way to apply effects to it. Like fading or controlling how long it lasts, or making it go away when ever you are done retrieving data
Have it be on your root view of your storyboard when it first appears, then animate it away. You might use [UIView animationWithDuration:1.0 animations:^...] with an alpha slide to zero on your image to make it fade out, for example.
 

dejo

Moderator
Staff member
Sep 2, 2004
15,725
447
The Centennial State
...controlling how long it lasts...
You shouldn't worry about how long it lasts. Why would you want to delay your users from using your app? Apple recommends you try to get your app to launch as fast as possible.

Oh, and if your app is retrieving data on launch, you should see if you can do that in the background.
 

Reason077

macrumors 68020
Aug 14, 2007
2,165
662
Back in the days when iPhones were slower and apps often took quite a few seconds to load, it sort of made sense to use Default.png as a splash screen. You couldn't do much about reducing loading time so it was ok to use that time for branding.

Now days with the fast new models like the 4S and (especially) the 5, most apps load virtually instantly - so Default.png isn't really displayed for any meaningful amount of time. It's a bad idea to put any kind of splash graphics in it now - it should just contain the "shell" of your UI and nothing more.