为什么在iOS 9和Xcode 7中无法在iPhone 6及更高版本中显示完整视图的高度和宽度? [英] Why In iOS 9 and Xcode 7 not show full view height and width in iPhone 6 and above?

查看:64
本文介绍了为什么在iOS 9和Xcode 7中无法在iPhone 6及更高版本中显示完整视图的高度和宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS 9和Xcode 7 ....并且我制作了没有情节提要的新应用,并使用了自动布局并使用了大小类.....基本上,我正在使用具有调整大小功能的xib并使用代码检查设备.当我使用xcode 6.4和iOS 8时,我的代码适用于每台设备.但是,当我使用Xcode 7和iOS 9时,屏幕无法在设备上完整显示,这仅适用于iPhone 6及更高版本.我在此处附加了图片...

在iPhone 6及更高版本的iPhone 6的每个屏幕上都会看到图像中的黑色部分.....我在启动图像视图中添加了所有启动图像....但我不知道为什么会出现此问题.

,如果我没有添加启动图像,并且没有该运行代码,则此视图如下.... ......我这是与以下问题有关启动屏幕.

解决方案

您需要为这些设备设置启动屏幕.或您的视图背景颜色为黑色.并且您没有设置UIImageView的约束.

I am using iOS 9 and Xcode 7 ....and I make new app without storyboard and use auto layout and use size classes.....basically I am using xib with resizing feature and use code to check device . When I was using xcode 6.4 and iOS 8 then my code work for each device . But when I use Xcode 7 and iOS 9 then screen not show full on device this is only for iPhone 6 and above. I attached image here...

See In image black part appear on each screen for iPhone 6 and above.....I add all launch images on launch image View....but I don't know why this problem appear.

and If I'm not added launch images and without that run code this view like this..........I this this is problem related to launch screen.

解决方案

You need to set the launch screen for these devices. or your view background color is black. and you didn't set the constraint for the UIImageView.

这篇关于为什么在iOS 9和Xcode 7中无法在iPhone 6及更高版本中显示完整视图的高度和宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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