我正在使用 Xcode 7.3 并尝试了所有设置启动图像的方法,
- 我尝试过的一种方法是在 assets.xcassets 中创建启动图像并分配适当的图像。
- 第二种方法我点击了下面的链接,
How do I create launch images for iPhone 6 / 6 Plus Landscape Only Apps?
通过点击上面的链接,我可以将启动图像设置为纵向或横向,但不能同时设置。
有什么方法可以为低于 iPhone 6 plus 的 iPhone 设备设置纵向和横向的启动图像?
最佳答案
你在使用 Storyboard吗??.. 如果您使用的是故事,请按照以下步骤操作:
1:首先添加启动画面点击command+n选择LaunchScreen并添加。
2:按照本教程注册 LaunchScreen.open info.plist [ https://useyourloaf.com/blog/using-a-launch-screen-storyboard/][1]
3:在启动屏幕上拖动imageview并选择size class regular width和regular height 然后添加leading, trailing top and bottom constraint 0
关于ios - 无法为 iphone 4s、5、5s、6、6s 设置纵向和横向模式的启动图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42552895/