iOS | iOS设置Icons和LaunchImages的尺寸问题

借助巨人的肩膀

APP图标设置 - 取Images.xcassets中的AppIcon,
图标尺寸

29pt * 2x => 58 * 58
29pt * 3x => 87 * 87
40pt * 2x => 80 * 80
40pt * 3x => 120 * 120
60pt * 2x => 120 * 120
60pt * 3x => 180 * 180

启动页动画图片设置 - 取Images.xcassets中点击+号
取New Launch Image - LaunchImage


iPhone 启动页尺寸
landscape 是代表横屏,portrait代表竖屏

iPhone Portrait         iOS7,8   (含有Landscape - 即竖屏)
Retina HD 5.5          1242*2208
Retina HD 4.7          750*1334
iPhone Landscape    iOS7,8   (含有Landscape - 即横屏)
Retina HD 5.5          2208*1242

————————————————

iPhone Portrait         iOS7,8
2X                           640*960
Retina 4                   640*1136

————————————————

iPad Portrait            iOS7,8
1X                          768*1024
2X                          1536*2048
iPad Landscape       iOS7,8
1X                          1024*768
2X                          2048*1536

————————————————

iPhone Portrait       iOS 5,6
1X                         320*480
2X                         640*960
Retina 4                640*1136

————————————————

iPad Portrait Without Status Bar
1X      768*1004
2X      1536*2008
ipad Portrait iOS 5,6
1X     768*1024
2X     1536*2048
iPad Landscape Without Status Bar
1X     1024*748
2X     2048*1496
iPad Landscape
1X     1024*768
2X      2048*1536

开机动画设置 - 在工程中General的Deployment Info 的Main Interface 为空, APP Icons and Launch Images中的 Launch Images Source 选项选为LaunchImage(旁边的箭头如果能点击进入开机动画视图尺寸页面, 即成功), Launch Screen File 选项为空

启动页停留一段时间 只需要在 AppDelegate 的这个方法里面

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    [NSThread sleepForTimeInterval:3.0];//设置启动页面时间
    return YES;
}

参考来自: iPhone开机动画尺寸

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容