在iPhone 5上运行时,iPhone 5故事板仍显示填充

时间:2022-11-13 10:47:54

在iPhone 5上运行时,iPhone 5故事板仍显示填充I have made a new app with storyboard, where the storyboard is currently just for iPhone 5. But the issue is, when I run this on iPhone 5 device/simulator, it shows padding at the top and bottom of the screen as if an iPhone 4 application is being run. Please see the screenshot I have attached. And help where did I go wrong.

我用storyboard创建了一个新的应用程序,故事板目前只适用于iPhone 5.但问题是,当我在iPhone 5设备/模拟器上运行时,它会在屏幕的顶部和底部显示填充,就像iPhone一样正在运行4个应用程序。请参阅我附上的截图。并帮助我哪里出错了。

在iPhone 5上运行时,iPhone 5故事板仍显示填充

EDIT : Actually its still not working. In iOS 8 its coming fullscreen but in iOS 7 for some reason the black padding is coming. PLease hellpppp.

编辑:实际上它仍然无法正常工作。在iOS 8中它即将全屏,但在iOS 7中由于某种原因黑色填充即将到来。请到hellpppp。

1 个解决方案

#1


0  

EDIT - I got the issue.Apparently, in xcode 6, when Launchscreen.xib is given, it does not work for ios 7 and it works perfectly normal for ios8.

编辑 - 我遇到了问题。显然,在xcode 6中,当给出Launchscreen.xib时,它不适用于ios 7,它对ios8来说非常正常。

Previous answer - The issue was, in Xcode 6.0, the new project generates a LaunchScreen.xib file, but apparently you manually have to go to the General settings for the target and select the launch screen File options from the drop down. This solves the issues. :) 在iPhone 5上运行时,iPhone 5故事板仍显示填充

上一个答案 - 问题是,在Xcode 6.0中,新项目生成一个LaunchScreen.xib文件,但显然您必须手动转到目标的常规设置,然后从下拉列表中选择启动屏幕文件选项。这解决了问题。 :)

#1


0  

EDIT - I got the issue.Apparently, in xcode 6, when Launchscreen.xib is given, it does not work for ios 7 and it works perfectly normal for ios8.

编辑 - 我遇到了问题。显然,在xcode 6中,当给出Launchscreen.xib时,它不适用于ios 7,它对ios8来说非常正常。

Previous answer - The issue was, in Xcode 6.0, the new project generates a LaunchScreen.xib file, but apparently you manually have to go to the General settings for the target and select the launch screen File options from the drop down. This solves the issues. :) 在iPhone 5上运行时,iPhone 5故事板仍显示填充

上一个答案 - 问题是,在Xcode 6.0中,新项目生成一个LaunchScreen.xib文件,但显然您必须手动转到目标的常规设置,然后从下拉列表中选择启动屏幕文件选项。这解决了问题。 :)