iOS Splash以及更新提示

来源:互联网 发布:义乌淘宝网店摄影培训 编辑:程序博客网 时间:2024/05/21 15:42

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打开,反应形式如下:

<key>UISupportedInterfaceOrientations</key><array>    <string>UIInterfaceOrientationPortrait</string>    <string>UIInterfaceOrientationPortraitUpsideDown</string>    <string>UIInterfaceOrientationLandscapeLeft</string>    <string>UIInterfaceOrientationLandscapeRight</string></array>

在程序内部进行版本检测,如果不是最新版本,可以在图标上进行对应的显示(数字),如以下代码:

[UIApplication shareApplication].applicationIconBadgeNumber = 3;

可以让图标(Icon)右上角显示数字3.


0 0
原创粉丝点击