gpt4 book ai didi

ios - Xcode 6 LaunchScreen.xib 错误的 iOS7 iPhone 5 窗口大小

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:15:43 25 4
gpt4 key购买 nike

我已经在 Xcode 6 中创建了我的项目,并且我正在使用默认的 LaunchScreen.xib 文件。在 iOS 8 中一切正常,但是当我在 iOS 7.0.3 上测试时,项目似乎不适用于 iPhone 5 - 我的顶部和底部都有黑条。正如我所说,在 iPhone 5 iOS 8 上一切正常。

当我查看 xib 文件时:

Size - freeform (changing to inferred doesn't help)
Orientation - inferred
Status bar - none
Top bar - inferred
Bottom bar - inferred

知道如何解决吗?

--编辑--

我通过模式(单 View 应用程序 -> 设备(通用))创建了一个新项目,仅将项目信息 -> iOS 部署目标更改为 5.0。当我在 iPhone 5s iOS 7.0.3 模拟器上运行时,屏幕上没有填满应用程序。这似乎是 Apple 制造的错误。

最佳答案

在 iOS7 或更早版本上,您必须使用启动图像。来自 https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/LaunchImages.html

In iOS 8 and later, you can create a XIB or storyboard file instead of a static launch image. When you create a launch file in Interface Builder, you use size classes to define different layouts for different display environments and you use Auto Layout to make minor adjustments. Using size classes and Auto Layout means that you can create a single launch file that looks good on all devices and display environments. (For an overview of display environments and size classes, see Build In Adaptivity; to learn how to use size classes in Interface Builder, see Size Classes Design Help.)

If you also need to support earlier versions of iOS, you can continue to supply static launch images in addition to a launch file.

关于ios - Xcode 6 LaunchScreen.xib 错误的 iOS7 iPhone 5 窗口大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26217175/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com