It's easy, just name your welcome picture Default.png,
Your welcome image will be displayed automatically when the app is launched.
Of course, different devices, named different, but the picture is the same, but the resolution has a difference.
The current iOS mainstream device resolutions are as follows:
iphone 1 (referring to first-generation iphone), iphone 3g,iphone 3GS,ipod Touch 1, ipod Touch 2,ipod Touch 3
Resolution of 320x480 (width x Height 3:2), welcome to the image named Default.png;
IPhone 4,iphone 4S,iPod Touch 4
Resolution of 640x960 (16:9), welcome to the image named [email protected];
IPhone5 resolution of 640x1136, welcome to the image named [email protected];
IPad 1,ipad2,ipad Mini resolution for 768x1024 welcome image named Default~ipad.png,
New ipad (ipad 3), ipad 4 resolution for 1536x2048 Welcome image named [Email protected]
(The above does not consider the horizontal screen situation)
In addition, sometimes the application launches quickly, welcome to the picture flashed past, if you want to wait a few seconds before entering the application can be in APPDELEGAE.M
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[Nsthread Sleepfortimeinterval:3];
}