ios - iPhone 6 模拟器中的 LaunchScreen 与实体 iPhone 6 不同

标签 ios autolayout ios-simulator ios9 launch-screen

我的 Swift/iOS 应用程序在 iPhone 6 模拟器和实际设备本身上运行时,启动屏幕不同。

在模拟器上所有对象都正确显示和定位

enter image description here

在我的 iPhone 6 上运行相同的应用程序时,未显示 Logo 。

enter image description here

图像的限制不是特别的;

  • 将中心 X 与父 View 对齐。常数=0,优先级=1000,乘数=1
  • 将中心 y 与父 View 对齐。常数=1,优先级=1000,乘数=7/9
  • 与 Logo.png 的比例为 1:1。常数=0,优先级=1000,乘数=1:1

源代码在我的 Github 仓库中可用 https://github.com/petervannes/homecaremonitor

最佳答案

选项 1:

确保未选中 Storyboard中 UIImageViewClears Graphics Context 框。只是改变这个为我解决了它。也许你试试看。

[ enter image description here

选项 2:

如果关闭然后再打开则打开。 重启设备

关于ios - iPhone 6 模拟器中的 LaunchScreen 与实体 iPhone 6 不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37179195/

相关文章:

ios - 连接蓝牙键盘时是否也会调用keyboardDidShow?

ios - iOS模拟器中图像不稳定

ios - 您可以使用 springs & struts 为不同的设备调整 TableViewCell 的大小吗?

ios - 在 Swift 2 中解析 JSON 时出现 AutoLayout 错误

ios - iOS 设备上的 .plist 路径

ios - 是否可以将为iOS ARM编译的.ipa转换为可以在模拟器上运行的x86?

ios - Swift 核心数据结构

ios - 禁止自动 Apple Pay 建议

ios - IBAction 不起作用

ios - UITableViewCell 不显示我设置为约束的高度