您的位置:首页 > 移动开发 > IOS开发

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

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


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

[UIApplication shareApplication].applicationIconBadgeNumber = 3;

可以让图标(Icon)右上角显示数字3.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐