【Topics Generic】App Launch (Default) Images

It is recommended that you use the following format for launch image filenames: 

<basename> <usage_specific_modifiers> <scale_modifier> <device_modifier> .png 


The <basename> portion of the filename is either the string Default or a custom string that you specify usingthe UILaunchImageFile key in your app’s Info.plist file. The <scale_modifier> portion is the optionalstring @2x and should be included only for images intended for use on Retina displays.  

Table 5-4 Typical launch image dimensions

Device

Portrait

Landscape

iPhone and iPod touch

320 x 480 pixels
640 x 960 pixels (
@2x)

Not supported

iPhone 5 and iPod touch (5th generation)

640 x 1136 pixels (@2x)

Not supported

iPad

768 x 1024 pixels
1536 x 2048 pixels (
@2x)

1024 x 768 pixels
2048 x 1536 pixels (
@2x)



To specify default launch images for iPhone 5 and iPod touch (5th generation) devices, include the modifier string -568h immediately after the <basename> portion of the filename. Because these devices have Retina displays, the @2x modifier must always be included with launch images for the devices. For example, the default launch image name for a device is Default-568h@2x.png

The -568h modifier should always be the first one in the list. You can also insert other modifiers after the -568h string as described below. 



Providing Launch Images for Different Orientations 

<basename> <orientation_modifier> <scale_modifier> <device_modifier> .png 

Table 5-5 Launch image orientation modifiers

Modifier

Description

-PortraitUpsideDown

Specifies an upside-down portrait version of the launch image. A file withthis modifier takes precedence over a file with the -Portrait modifierfor this specific orientation.

-LandscapeLeft

Specifies a left-oriented landscape version of the launch image. A file withthis modifier takes precedence over a file with the -Landscape modifierfor this specific orientation.

-LandscapeRight

Specifies a right-oriented landscape version of the launch image. A filewith this modifier takes precedence over a file with the -Landscapemodifier for this specific orientation.

-Portrait

Specifies the generic portrait version of the launch image. This image isused for right-side up portrait orientations and takes precedence over theDefault.png image file (or your custom-named replacement for thatfile). If a file with the -PortraitUpsideDown modifier is not specified,this file is also used for upside-down portrait orientations as well.

Modifier

Description

-Landscape

Specifies the generic landscape version of the launch image. If a file withthe -LandscapeLeft or -LandscapeRight modifier is not specified,this image is used instead. This image takes precedence over theDefault.png image file (or your custom-named replacement for thatfile).

(none)

If you provide a launch image file with no orientation modifier, that fileis used when no other orientation-specific launch image is available. Forapps running on systems earlier than iOS 3.2, you must name this fileDefault.png.

MyLaunchImage-Landscape.png 

Default-Portrait.png 


Providing Device-Specific Launch Images 


~ipad. The launch image should be loaded on iPad devices only.
~iphone. The launch image should be loaded on iPhone or iPod touch devices only. 


Default~iphone.png 



Providing Launch Images for Custom URL Schemes 

<basename> -<url_scheme> <scale_modifier> <device_modifier> .png 

The <url_scheme> modifier is a string representing the name of your URL scheme name. For example, if yourapp supports a URL scheme with the name myscheme, the system looks for an image with the nameDefault-myscheme.png (or Default-myscheme@2x.png for Retina displays) in the app’s bundle. 

<basename> -<url_scheme> <orientation_modifier> <scale_modifier> <device_modifier> .png 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值