简体   繁体   中英

How to set different Launch Images for different targets on Xcode on iOS application?

How to set different Launch Images for different targets on Xcode on iOS application?

When I'm trying to do it for the second target Xcode renames it to Default.png and shows warning that file is already exists.

在此处输入图片说明

Is it possible?

You can set differant base name for launch screen file name by assigning it as value of UILaunchImageFile in your Info.plist file.

Read more about it from Apple documentation on App Related Resources .

Specifically for 4 inch iOS devices (iPhone 5 and iPod)

To specify default launch images for iPhone 5 and iPod touch (5th generation) devices, include the modifier string -568h immediately after the 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. (If your app has the UILaunchImageFile key in its Info.plist file, replace the Default portion of the string with your custom string.) The -568h modifier should always be the first one in the list.

See http://developer.apple.com/library/ios/ipad/#documentation/iphone/conceptual/iphoneosprogrammingguide/App-RelatedResources/App-RelatedResources.html for details informatica. There is à section launch images, how to name them. Although I cannot fnd how to name the 4-inch image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM