为iPad/iPhone加载不同的启动屏幕 [英] Load Different Launch Screen for iPad / iPhone
问题描述
我想为iPad和iPhone加载不同的启动屏幕故事板&为此,我在info.plist中添加新条目,如下所示:
i want to load different launch screen storyboard for iPad and iPhone & for that i add new entry in info.plist like below
,但仅加载iPhone启动屏幕.
but it load only iPhone launch screen.
任何帮助将不胜感激. 预先感谢.
any help will be appreciated. thanks in advance.
推荐答案
方法1: 您必须为此使用两个xib.一个用于iPad,另一个用于iPhone.您必须将其命名如下,
Way 1: You have to use two xib's for this. One for iPad and the other one for iPhone. You have to name it as follows,
iPhone -LaunchScreen2〜iphone.xib
iPhone- LaunchScreen2~iphone.xib
iPad -LaunchScreen2〜ipad.xib
iPad - LaunchScreen2~ipad.xib
或
方式2: 打开您的Info.plist文件.创建另一个条目作为UILaunchStoryboardName〜ipad,并将其设置为LaunchScreeniPad.xib.
Way2: Open your Info.plist file. Create another entry as UILaunchStoryboardName~ipad and set it to your LaunchScreeniPad.xib.
如果遇到任何困难,请返回
Revert back in case if you face any difficulties
这篇关于为iPad/iPhone加载不同的启动屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!