本文永久地址为 http://www.cnblogs.com/ChenYilong/p/4020384.html,转载请注明出处。
Evernote印象笔记链接:https://www.evernote.com/l/AOMMorhKH_hJl4divLQfouMeTGVEg2MMz6k
如果你用到的老项目,也就是Xode5创建的项目,用Xcode6做#iPhone6与iPhone6Plus适配#需要重新添加LaunchImage文件夹
进行下面的操作,
本文永久地址为 http://www.cnblogs.com/ChenYilong/p/4020384.html,转载请注明出处。
本文永久地址为 http://www.cnblogs.com/ChenYilong/p/4020384.html,转载请注明出处。
然后再修改下配置:
至于图片你可以参考下面的:
UILaunchImages = {
{ --iPhone 4
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default",
["UILaunchImageOrientation"] = "Portrait",
["UILaunchImageSize"] = "{320, 480}"
},
{ --iPhone 4
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default",
["UILaunchImageOrientation"] = "LandscapeLeft",
["UILaunchImageSize"] = "{320, 480}"
},
{ --iPhone 4
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default",
["UILaunchImageOrientation"] = "LandscapeRight",
["UILaunchImageSize"] = "{320, 480}"
},
{ --iPhone 5
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default-568h",
["UILaunchImageOrientation"] = "Portrait",
["UILaunchImageSize"] = "{320, 568}"
},
{ --iPhone 5
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default-568h",
["UILaunchImageOrientation"] = "LandscapeLeft",
["UILaunchImageSize"] = "{320, 568}"
},
{ --iPhone 5
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default-568h",
["UILaunchImageOrientation"] = "LandscapeRight",
["UILaunchImageSize"] = "{320, 568}"
},
{ --iPad landscape
["UILaunchImageMinimumOSVersion"] = "7.0",
["UILaunchImageName"] = "Default-Landscape",
["UILaunchImageOrientation"] = "Landscape",
["UILaunchImageSize"] = "{768, 1024}"
},
{ --iPhone 6
["UILaunchImageMinimumOSVersion"] = "8.0",
["UILaunchImageName"] = "Default-667h",
["UILaunchImageOrientation"] = "Portrait",
["UILaunchImageSize"] = "{375, 667}"
},
{ --iPhone 6
["UILaunchImageMinimumOSVersion"] = "8.0",
["UILaunchImageName"] = "Default-667h",
["UILaunchImageOrientation"] = "LandscapeLeft",
["UILaunchImageSize"] = "{375, 667}"
},
{ --iPhone 6
["UILaunchImageMinimumOSVersion"] = "8.0",
["UILaunchImageName"] = "Default-667h",
["UILaunchImageOrientation"] = "LandscapeRight",
["UILaunchImageSize"] = "{375, 667}"
},
{ -- iPhone 6 Plus landscape left
["UILaunchImageMinimumOSVersion"] = "8.0",
["UILaunchImageName"] = "Default-Landscape-736h",
["UILaunchImageOrientation"] = "LandscapeLeft",
["UILaunchImageSize"] = "{414, 736}"
},
{ -- iPhone 6 Plus landscape right
["UILaunchImageMinimumOSVersion"] = "8.0",
["UILaunchImageName"] = "Default-Landscape-736h",
["UILaunchImageOrientation"] = "LandscapeRight",
["UILaunchImageSize"] = "{414, 736}"
}
}
You have to include the options for LandscapeLeft and LandscapeRight for the phones.
Rob
本文永久地址为 http://www.cnblogs.com/ChenYilong/p/4020384.html,转载请注明出处。
同时也可以参考下:
下面是QQ的启动Launchimage启动页面,点击下面链接可自行下载:
共七张包含了#iPhone6与iPhone6Plus#
编号
|
尺寸 |
命名
|
图片
|
1
|
640 × 1136
|
LaunchImage-1-568h@2x.png
|
|
2
|
640 × 1136
|
LaunchImage-1-700-568h@2x.png
|
|
3
|
640 × 960
|
LaunchImage-1-700@2x.png
|
|
4
|
750 × 1334
|
LaunchImage-1-800-667h@2x.png
|
|
5
|
1242 × 2208
|
LaunchImage-1-800-Portrait-736h@3x.png
|
|
6
|
320 × 480
|
LaunchImage-1.png
|
|
7
|
640 × 960
|
LaunchImage-1@2x.png
|
|
- LaunchImage-1-568h@2x.png (640 × 1136)
- LaunchImage-1-700-568h@2x.png (640 × 1136)
- LaunchImage-1-700@2x.png (640 × 960)
- LaunchImage-1-800-667h@2x.png (750 × 1334)
- LaunchImage-1-800-Portrait-736h@3x.png (1242 × 2208)
- LaunchImage-1.png (320 × 480)
- LaunchImage-1@2x.png (640 × 960)
参考文献:http://matthewpalmer.net/blog/2014/09/10/iphone-6-plus-launch-image-adaptive-mode/
**************************************************************************
系列文章:老项目的#iPhone6与iPhone6Plus适配#(持续更新中,更新日期2014年10月12日 星期日 )
列表如下:
2.老项目的#iPhone6与iPhone6Plus适配#Icon适配
3.老项目的#iPhone6与iPhone6Plus适配#iOS8无法开启定位问题记起#解决方案#
4.老项目的#iPhone6于iPhone6Plus适配#iPhone6分辨率与适配
6.#iPhone6与iPhone6Plus适配#如何在Xcode 6中创建 PCH 文件
**************************************************************************
本文永久地址为 http://www.cnblogs.com/ChenYilong/p/4020384.html,转载请注明出处。
Evernote印象笔记链接:https://www.evernote.com/l/AOMMorhKH_hJl4divLQfouMeTGVEg2MMz6k
**************************************************************************
2.老项目的#iPhone6与iPhone6Plus适配#Icon适配
3.老项目的#iPhone6与iPhone6Plus适配#iOS8无法开启定位问题记起#解决方案#
4.老项目的#iPhone6于iPhone6Plus适配#iPhone6分辨率与适配
6.#iPhone6与iPhone6Plus适配#如何在Xcode 6中创建 PCH 文件
**************************************************************************