简体   繁体   English

iOS - 设备上的3.5“布局而不是4”布局 - 在模拟器上正常工作

[英]iOS - 3.5“ layout instead of 4” layout on device - works fine on simulator

I have XCode 6 project built with target OS as iOS 8.1 (I don't see earlier target in XCode). 我有使用目标操作系统构建的XCode 6项目作为iOS 8.1(我没有看到XCode中的早期目标)。

All my view controllers are designed for iPhone 4 inch size. 我的所有视图控制器都是针对iPhone 4英寸尺寸设计的。 I see correct size when I launch my app on simulator (iOS 8). 当我在模拟器(iOS 8)上启动我的应用程序时,我看到了正确的大小。

However I get iPhone 3.5 inch layout on my iPhone 5C (4") - running iOS 7.1.1 - no matter what changes I make to storyboard. I tried changing storyboard settings like IB version to iOS 7.1 and later and so on, but to no avail. 然而,我在iPhone 5C(4“)上运行iPhone 3.5英寸布局 - 运行iOS 7.1.1 - 无论我对故事板做了什么改变。我尝试将故事板设置如IB版改为iOS 7.1及更高版本,依此类推,但是徒劳无功。

The app runs totally fine, except that the top & bottom spaces appear black on my device - total height = 480 instead of 568. 应用程序运行完全正常,但我的设备上的顶部和底部空格显示为黑色 - 总高度= 480而不是568。

What can be the reason? 可能是什么原因?

The solution - as suggested by a kindred spirit on Apple forum: 解决方案 - 正如Apple论坛上的志趣精神所表明的那样:

  • Include a 4" launch image to the asset catalog 在资产目录中包含4“启动图像
  • Clean up the project, delete derived data, delete the app from device 清理项目,删除派生数据,从设备中删除应用程序
  • Re-Run the app on device. 在设备上重新运行应用程序。
  • 320 X 568 screen is there...woohoo.... 320 X 568屏幕就在那里......哇哇......

暂无
暂无

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

相关问题 具有大小类的iOS8自动布局在预览中工作,但在设备/模拟器中不起作用 - iOS8 auto layout with size classes works in preview but not in device/simulator 设备上的ios app布局与Xcode模拟器上的不同 - ios app layout on device is not the same as on the Xcode simulator iOS App在Simulator上运行正常,但在真实的iOS设备上崩溃 - iOS App works fine with Simulator but Crashes with a real iOS device MVVMCross绑定属性在iOS模拟器中工作正常,但在设备上失败 - MVVMCross binding property works fine in iOS simulator but fails on device 应用程序在Simulator(Xcode 7.1.1)中运行良好,但在iOS设备上运行不正常 - app works fine in Simulator (Xcode 7.1.1) but not on iOS device iOS / FBSDK-FBSDKProfile在设备上为零,在模拟器上可以正常工作 - iOS/FBSDK - FBSDKProfile is nil on device, works fine on simulator 两个共享钥匙串数据的应用程序在iOS模拟器中运行良好,但在设备中无效 - Two applications sharing keychain data works fine in iOS simulator but not in device iOS应用程序不会在设备上编译,但在模拟器中工作正常 - iOS app won't compile on device but works fine in simulator 从HTTP服务器的iOS电影流正常工作在模拟器,但不是在装置 - iOS movie stream from http server works fine on simulator, but not on device Firebase 在 ios 模拟器上运行良好,但在真实设备上不起作用 - Firebase works fine on ios simulator but it does't work on real device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM