ios启动动画
2015-07-13 14:06
453 查看
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;
}
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;
}
相关文章推荐
- Nagios 监控系统架设全攻略
- iOS-MD5加密
- iOS crash 崩溃问题的追踪方法
- iOS点击空白处或点击背景收起键盘
- iOS 下载功能:断点下载(暂停和开始)(NSURLConnectionDataDelegate方法)
- iOS 点击状态栏回滚scrollView顶部
- [资源贴]黑马iOS培训视频
- iOS开发中有用的终端命令(更新中)
- 成都优步uber司机客户端下载-支持安卓、IOS系统、优步司机端Uberpartner
- iOS引导页
- 极光推送 与 原生推送的概念小结
- iOS 代码tableViewCell自适应label
- iOS推送小结(证书的生成、客户端的开发、服务端的开发)
- Facebook SDK for iOS 2.4 iOS 6 上运行崩溃
- iOS 开发获取唯一标识
- ios中解析HTML
- 个人常用iOS第三方库以及XCode插件介绍
- iOS控制系统音量的大小
- IOS 本地通知
- iOS开发中那些高效常用的宏