问题
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