iOS Splash以及更新提示
2015-01-10 21:44
162 查看
http://blog.chinaunix.net/uid-25458681-id-3491101.html
启动APP的时候的APP可以设定在各个方向上的图片显示:
1:Default-Portrait.png 该命名的图片在竖屏进入的,会被使用为Splash
2:Default-Landscape.png 该命名的图片在横屏进入的,会被使用为Splash
3:Default.png 该命名的图片,不管在横屏还是竖屏进入的时候,都会被使用为Splash
当然可以在图片的命名基础上进行再修改,比如可以加上上下左右等,该命名方式只是针对iPad,在iPhone、iTouch等设备上并没有作用,只支持竖屏Splash。
以上加在的前提是在Info.plist文件中进行了相关的设置,支持该方向上屏幕旋转,一source
code打开,反应形式如下:
在程序内部进行版本检测,如果不是最新版本,可以在图标上进行对应的显示(数字),如以下代码:
[UIApplication shareApplication].applicationIconBadgeNumber = 3;
可以让图标(Icon)右上角显示数字3.
启动APP的时候的APP可以设定在各个方向上的图片显示:
1:Default-Portrait.png 该命名的图片在竖屏进入的,会被使用为Splash
2:Default-Landscape.png 该命名的图片在横屏进入的,会被使用为Splash
3:Default.png 该命名的图片,不管在横屏还是竖屏进入的时候,都会被使用为Splash
当然可以在图片的命名基础上进行再修改,比如可以加上上下左右等,该命名方式只是针对iPad,在iPhone、iTouch等设备上并没有作用,只支持竖屏Splash。
以上加在的前提是在Info.plist文件中进行了相关的设置,支持该方向上屏幕旋转,一source
code打开,反应形式如下:
<key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortraitUpsideDown</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array>
在程序内部进行版本检测,如果不是最新版本,可以在图标上进行对应的显示(数字),如以下代码:
[UIApplication shareApplication].applicationIconBadgeNumber = 3;
可以让图标(Icon)右上角显示数字3.
相关文章推荐
- iOS检测以及提示系统更新
- 【iOS-Cocos2d游戏开发之十六】添加本地通知(UILocalNotification)以及添加系统组件滚动视图(UIScrollView)!【2011年11月15日更新】
- 【Himi之Cocos2d-iOS游戏开发】系列博文26篇整合以及Android书籍的源码和样章▃11月10日更新第二十六章
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)
- iOS通过iTunes search检测版本更新,并提示用户更新!
- iOS通过iTunes search检测版本更新,并提示用户更新!
- 【iOS-Cocos2d游戏开发之十六】添加本地通知(UILocalNotification)以及添加系统组件滚动视图(UIScrollView)!【2011年11月15日更新】
- iOS通过iTunes search检测版本更新,并提示用户更新!
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)
- 禁止 iOS 自动下载更新和提示的方法
- iOS通过iTunes search检测版本更新,并提示用户更新!
- 添加删除、更新按钮的提示确认信息,以及DATAGRID的添加、插入、更新、删除操作。
- iOS通过iTunes search检测版本更新,并提示用户更新!
- iOS通过iTunes search检测版本更新,并提示用户更新!
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(一)
- 添加删除、更新按钮的提示确认信息,以及DATAGRID的添加、插入、更新、删除操作。
- iOS通过iTunes search检测版本更新,并提示用户更新!
- iOS通过iTunes search检测版本更新,并提示用户更新!
- 补充部分官方文档里没有的Client Library以及代码提示Schema更新(三)
- iOS通过iTunes search检测版本更新,并提示用户更新!