iPhone启动图片Launch Image能玩出的花儿

来源:互联网 发布:淘宝开店无忧是真的吗 编辑:程序博客网 时间:2024/05/22 16:30

Naming Your Launch Image Files
The name of each launch image conveys its purpose and how it is used. It is recommended that you use the following format for launch image filenames:

<basename><usage_specific_modifiers>.png

The portion of the filename is the string that you specify using the UILaunchImageFile key. (If you do not specify the key, iOS uses the string Default for the launch image name.) To the base name, you can add several different types of modifiers:

High-resolution image modifier—Use the@2xmodifier to identify images that are intended for Retina displays.
Platform-specific modifiers—Use the modifiers~iphone or~ipadto specify images targeting a specific size of device.
Orientation-specific modifiers—Use the strings-Landscape, -Portrait, -LandscapeLeft, -LandscapeRight, or -PortraitUpsideDown to specify launch images when the device is in a specific orientation. More specific orientation modifiers take precedence over less-specific orientation modifiers. For example, an image with the -LandscapeLeft modifier takes precedence over an image with the -Landscape modifier when the device is in the correct orientation.
iPhone 5 modifier—Use the string-568hto specify a launch image intended for devices whose screen is 568 points high. Because such devices also have Retina displays, you should also include the @2x modifier in the image name.
URL scheme modifiers—Include the name of your app’s custom URL scheme in launch image names if you want those launch images displayed when your app is launched to open a URL of the specified type. The format of a scheme modifier is-<url_scheme>where < url_scheme > is your custom scheme name. For example, if your app opens URLs of the form myscheme://example.com, you would include -myscheme in your launch image names.

苹果官方文档地址

0 0