Load Different Launch Screen for iPad / iPhone

前端 未结 2 1936
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 15:24

i want to load different launch screen storyboard for iPad and iPhone & for that i add new entry in info.plist like below

but it load only iPhone launch scr

2条回答
  •  长发绾君心
    2021-02-07 15:54

    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

    iPad - LaunchScreen2~ipad.xib

    or

    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

提交回复
热议问题