Why In iOS 9 and Xcode 7 not show full view height and width in iPhone 6 and above?

自作多情 提交于 2020-01-15 08:55:28

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/33190593/why-in-ios-9-and-xcode-7-not-show-full-view-height-and-width-in-iphone-6-and-abo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!