简体   繁体   English

iOS7 / iOS8中的不同视图外观

[英]Different view appearances in iOS7/iOS8

In my app I need to support iOS 7 and iOS 8. I use Xcode 6. When I build app for iPhone 5s (iOS 8.0) it looks like this: 在我的应用程序中,我需要支持iOS 7和iOS8。我使用Xcode6。在为iPhone 5s(iOS 8.0)构建应用程序时,它看起来像这样:

正确的布局

and it's right. 是的。 But when I build app for iPhone 5s (iOS 7.1) it looks like this: 但是,当我为iPhone 5s(iOS 7.1)构建应用程序时,它看起来像这样:

布局不正确

so button Done is missed and some black lines appeared. 因此未完成按钮,并且出现了一些黑线。 It looks like Xcode built app for iPhone 4. Maybe I forgot to set some properties and I can't understand what exactly properties I forgot. 它看起来像是为iPhone 4的Xcode构建的应用程序。也许我忘了设置一些属性,但我不明白我忘记了哪些属性。 Any ideas? 有任何想法吗?

You are missing the appropriate Launch images. 您缺少适当的启动图像。

Edit: Just tested a new project and black bars disappeared just by clicking "Use Asset catalog" even if you don't actually set images. 编辑:刚刚测试了一个新项目,即使您实际上没有设置图像,也只需单击“使用资产目录”即可消除黑条。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS8视图很好,但在iOS7上较小 - iOS8 view is fine but is smaller on iOS7 UITableView contentInset在iOS7和iOS8中有所不同 - UITableView contentInset different in iOS7 and iOS8 UINavigationBar外观在iOS7和iOS8中有所不同 - UINavigationBar appearance different in iOS7 and iOS8 iOS7和iOS8之间的Root View Controller差异 - Root View Controller discrepancy between iOS7 and iOS8 iOS7 / IOS8在视图控制器中仅允许纵向 - IOS7/IOS8 Allow only portrait in view controller UINavigationController的viewControllers属性在IOS7和iOS8中返回不同的对象 - viewControllers property of UINavigationController return different objects in IOS7 and iOS8 iOS8中CGAffineTransform的动画与iOS7中的动画不同 - Animation of CGAffineTransform in iOS8 looks different than in iOS7 与UIActivityViewController共享initWithActivityItems在iOS7和iOS8上产生不同的结果 - Sharing with UIActivityViewController initWithActivityItems producing different results on iOS7 and iOS8 iOS7到IOS8中当前位置纬度和经度的不同行为 - different behaviour for current location latitude and longitude in iOS7 to IOS8 在iPad iOS7中使用@ 2x加载UIImage与iOS8不同吗? - UIImage loading with @2x in iPad iOS7 is different with iOS8?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM