iOS启动屏 ➕ 闪屏的方法
2024-08-22 08:55:31
转载自:http://www.starming.com/index.php?v=index&view=21
在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 里添加
//加一张自定义的图就实现了。就这么简单。当然复杂的你可以自己在这里实现下
self.window.rootViewController.view.alpha = 0;
UIImageView *splashImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"splash"]];
[self.window addSubview:splashImageView];
[UIView animateWithDuration:0.7 animations:^{
self.window.rootViewController.view.alpha = 1.0;
} completion:^(BOOL finished) {
[addSubview:splashImageView removeFromSuperview];
}];
最新文章
- Awstats显示国家地区插件GeoIP安装
- UIDynamic-附着行为:UIAttachmentBehavior
- 使用CXF框架集成Spring实现SOAP Web Service
- 十分钟掌握Activity的生命周期与启动模式
- 【GoLang】go 微服务框架 &;&; Web框架学习资料
- 安装Birt方法
- Android BLE 蓝牙低功耗教程,中央BluetoothGatt和周边BluetoothGattServer的实现
- c++命名空间瀑布
- H264的coded_block_pattern编码块模式
- Quartz总结(一):Quartz集成Spring的2个方法
- C++ 编译期封装-Pimpl技术
- H5页面测试实战总结
- 微博第三方登录使用social_django实现显示登陆的用户名
- HTML中include file的用法
- Html lable 标签
- Java_IO异常处理方式_入门小笔记
- 使用rsync, 向另外一台服务器同步目录和文件的脚本
- Android短信收到,语音播报
- 【紫书】 Unix ls UVA - 400 模拟
- MySqli 中预处理类 stmt