[英]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?如何在 iOS 应用程序的 Xcode 上为不同的目标设置不同的启动图像?
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.当我尝试为第二个目标执行此操作时,Xcode 将其重命名为 Default.png 并显示文件已存在的警告。
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.您可以通过将其分配为 Info.plist 文件中的UILaunchImageFile值来为启动屏幕文件名设置不同的基本名称。
Read more about it from Apple documentation on App Related Resources .从App 相关资源的Apple 文档中阅读更多相关信息。
Specifically for 4 inch iOS devices (iPhone 5 and iPod)专门用于 4 英寸 iOS 设备(iPhone 5 和 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.要为 iPhone 5 和 iPod touch(第 5 代)设备指定默认启动图像,请在文件名部分后立即包含修饰符字符串 -568h。 Because these devices have Retina displays, the @2x modifier must always be included with launch images for the devices.由于这些设备具有 Retina 显示屏,@2x 修饰符必须始终包含在设备的启动图像中。 For example, the default launch image name for a device is Default-568h@2x.png.例如,设备的默认启动图像名称是 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. (如果您的应用程序在其 Info.plist 文件中有 UILaunchImageFile 键,请将字符串的默认部分替换为您的自定义字符串。)-568h 修饰符应始终是列表中的第一个。
See http://developer.apple.com/library/ios/ipad/#documentation/iphone/conceptual/iphoneosprogrammingguide/App-RelatedResources/App-RelatedResources.html for details informatica. 有关详细信息,请参见http://developer.apple.com/library/ios/ipad/#documentation/iphone/conceptual/iphoneosprogrammingguide/App-RelatedResources/App-RelatedResources.html 。 There is à section launch images, how to name them. 有à部分启动图像,以及如何命名它们。 Although I cannot fnd how to name the 4-inch image. 虽然我找不到如何命名4英寸图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.