我在我的应用程序中实现了自定义URL schemes。此外,我还使用info.plist中的UILaunchImageFile关键字来为启动图像指定不同的名称。文档中提到:
在iOS 5中,该方案的正确启动画面图像被呈现,但在iOS 6上,它显示普通的启动画面图像。我发现,如果我将其重命名为“默认(Default)”基本文件名,在iOS 6上可以正常工作,但这将破坏我的项目。因此,我将无法支持多个版本。If your app supports one or more custom URL schemes, it can also provide a custom launch image for each URL scheme. When the system launches your app to handle a URL, it displays the launch image associated with the scheme of the given URL. In this case, the format for your launch image filenames are as follows:
<basename>-<url_scheme><scale_modifier><device_modifier>.png
The modifier is a string representing the name of your URL scheme name. For example, if your app supports a URL scheme with the name myscheme, the system looks for an image with the name Default-myscheme.png (or Default-myscheme@2x.png for Retina displays) in the app’s bundle. If the app’s Info.plist file includes the UILaunchImageFile key, the base name portion changes from Default to the custom string you provide in that key.
Note: You can combine a URL scheme modifier with orientation modifiers. If you do this, the format for the filename is
<basename>-<url_scheme><orientation_modifier><scale_modifier><device_modifier>.png.
For more information about the launch orientation modifiers, see “Providing Launch Images for Different Orientations.”
有人遇到同样的问题吗?