简体   繁体   English

如何在 iOS 应用程序的 Xcode 上为不同的目标设置不同的启动图像?

[英]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.

相关问题 Xcode 针对不同目标的启动图像 - Xcode launch image for different targets 如何在iOS的XCode中为不同的目标使用不同的代码? - How can I have different code for different Targets in XCode for iOS? 如何使用Xcode Build为不同的目标设置不同的配置文件 - How to set different provisioning profiles for different targets using Xcode Build 如何为iOS应用程序的不同设备设置不同的启动文件(xib,而不是启动图像) - How to set different Launch File (xib, not launch image) for different device for iOS application Xcode,如何在来自不同目标的共享故事板中预览图像 - Xcode, How to Preview Images in shared storyboard sourced from different targets 如何在 Xcode 中为不同的目标设置单独的 LaunchScreen 故事板 - How to set separate LaunchScreen storyboards for different targets in Xcode iOS:如何针对不同的目标进行开发 - iOS: how to develop for different targets 如何为不同的目标设置不同的.entitlements文件 - How to set different .entitlements file for different targets 使用Xcode 5在iOS 7中启动图像 - Launch Images in iOS 7 with Xcode 5 ios应用程序的不同静态图像-用于启动和“ applicationdidenterforeground” - different static images for ios app - for launch and for “applicationdidenterforeground”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM