Chinaunix首页 | 论坛 | 博客
  • 博客访问: 46520
  • 博文数量: 40
  • 博客积分: 825
  • 博客等级: 准尉
  • 技术积分: 365
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-01 10:46
文章分类

全部博文(40)

文章存档

2013年(2)

2012年(15)

2011年(23)

我的朋友

分类: iOS平台

2013-02-18 11:23:05


启动APP的时候的APP可以设定在各个方向上的图片显示:

1:Default-Portrait.png   该命名的图片在竖屏进入的,会被使用为Splash

2:Default-Landscape.png     该命名的图片在横屏进入的,会被使用为Splash

3:Default.png   该命名的图片,不管在横屏还是竖屏进入的时候,都会被使用为Splash

当然可以在图片的命名基础上进行再修改,比如可以加上上下左右等,该命名方式只是针对iPad,在iPhone、iTouch等设备上并没有作用,只支持竖屏Splash。


以上加在的前提是在Info.plist文件中进行了相关的设置,支持该方向上屏幕旋转,一source code打开,反应形式如下:

UISupportedInterfaceOrientations

    UIInterfaceOrientationPortrait
    UIInterfaceOrientationPortraitUpsideDown
    UIInterfaceOrientationLandscapeLeft
    UIInterfaceOrientationLandscapeRight

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

[UIApplication shareApplication].applicationIconBadgeNumber = 3;

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






阅读(1309) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~