标签:
1、在images.xcassets里面加入LaunchImage
2、删掉LaunchScreen.xib
3、在Supporting Files里的info.plist的文件下,移除Launch screen interface file base...
在配置文件Target--->项目名称---->General----->
4、把以上第二行改成以上名字
5、- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
//此行配合plist文件中的View controller-based status bar appearance=NO一起使用,解决状态栏全黑的问题
[application setStatusBarStyle:UIStatusBarStyleLightContent];}
//使启动动画停顿2秒
[NSThread sleepForTimeInterval:2.0];
//使进入界面不为全黑,为白色
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
标签:
原文地址:http://www.cnblogs.com/momosmile/p/4642735.html