iphone-6和iPhone 6 plus在整个屏幕上都没有显示视图控制器(在Swift和Objective-c中) [英] View controller is not showing on whole screen for iphone-6 and iPhone 6 plus (in Swift and Objective-c both)

查看:243
本文介绍了iphone-6和iPhone 6 plus在整个屏幕上都没有显示视图控制器(在Swift和Objective-c中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在收到的奇怪错误:
如果我在应用程序中禁用自动布局并尝试使用启动屏幕处理,那么奇怪的错误即将来临:

Strange bug i am getting right now : If i am disabling auto-layout in application and trying to handle with launch screen then strange bug is coming :

第1步:


  • 如果我只为LaunchImage设置iOS-7及更高版本的应用程序,那么一切
    工作正常。但问题是我们无法为iPhone-6和iPhone 6 +设置LaunchImage屏幕
    在这种情况下,1136尺寸的图像将显示
    作为iPhone 6和iPhone 6 +的飞溅

  • iPhone 5及以上的窗口大小显示为320 * 568(适用于iPhone5.5s,6和6+)。

第2步:


  • 如果我启用iOS应用程序-8及以上也适用于LaunchImage和为iPhone 6和6+设置启动,然后启动工作正常。但是,在启动窗口大小后,它将根据设备屏幕大小进行更改。因此,所有视图控制器都没有在整个屏幕上显示,因为视图控制器大小仍然显示320 * 480

任何人都可以告诉我为什么出现这个奇怪的问题以及相关的解决方案。

can anyone let me know why this strange problem appearing and also relevant solution for this .

同样的问题出现在 swift 编程中。

Same problem appearing in swift programing too .

推荐答案

最后,我找到了解决此问题的另一种解决方案:

Finally i have found one alternate solution for this problem :

只需添加启动屏幕7.0和然后你的应用程序将在iPhone 5,5s,6和6+上运行。

Just add Launch screen for 7.0 and above then your App will run on iPhone 5,5s , 6 and 6+ accordingly .

为2x和Retina添加LaunchImage。

Add both LaunchImage for 2x and Retina .

这篇关于iphone-6和iPhone 6 plus在整个屏幕上都没有显示视图控制器(在Swift和Objective-c中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆