且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS8中iPhone应用程序启动图像的大小和命名

更新时间:2021-11-05 22:45:00


尺寸约定

iPhone3g:320 x 480

iPhone3g : 320 x 480

iPhone4 / 4s:640 x 960

iPhone4/4s : 640 x 960

iPhone5 / 5s:640 x 1136

iPhone5/5s : 640 x 1136

iPhone6:750 x 1334

iPhone6 : 750 x 1334

iPhone 6plus:1242 x 2208

iPhone 6plus : 1242 x 2208


命名约定

对于不想使用资产目录的开发人员,他们需要提供特定的名称来启动图像

iPhone3g:'Default.png'

iPhone3g : 'Default.png'

iPhone4 / 4s:'Default@2x.png'

iPhone4/4s : 'Default@2x.png'

iPhone5 / 5s:'Default-568h@2x.png'

iPhone5/5s : 'Default-568h@2x.png'

iPhone6:'Default-66 7h@2x.png'

iPhone6 : 'Default-667h@2x.png'

iPhone6plus:'Default-736h@3x.png'

iPhone6plus : 'Default-736h@3x.png'

对于使用资产目录的开发人员,他们无需为启动图像指定具体名称

转到 ProjectSetting - >常规 - >在应用程序图标和启动图像下,为启动图像源选择使用资产目录 ,然后拖放其操作系统版本/方向的启动图像

Go to ProjectSetting -> General-> Under 'App Icons and Launch Images', select 'Use Asset Catalog' for 'Launch Image Source', and drag-drop the launch images for their OS version's/Orientations