[英]Native resolution on iPhone 6, works on simulator but not on device
I'm having some problems enabling native resolution on the iPhone 6 on the actual device itself, when I run in the simulator it runs at native 375x667 (verified by both launchscreen and nslog of viewcontroller size. 在模拟器上运行时,在实际设备本身上的iPhone 6上启用本机分辨率时遇到一些问题,它以本机375x667运行(已通过启动屏幕和Viewcontroller大小的nslog进行了验证。
2015-04-29 13:24:24.220 aqrew_ios[7851:1294675] ViewController:didLayoutSubviews() - Width=375.000000 Height=667.000000
2015-04-29 13:24:24.220 aqrew_ios [7851:1294675] ViewController:didLayoutSubviews()-宽度= 375.000000高度= 667.000000
However when I run the same code on an actual iPhone 6 (iOS8.3) its running at scaled iPhone 5 resolution. 但是,当我在实际的iPhone 6(iOS8.3)上运行相同的代码时,它以缩放的iPhone 5分辨率运行。
2015-04-29 13:17:02.614 aqrew_ios[720:179633] ViewController:didLayoutSubviews() - Width=320.000000 Height=568.000000
2015-04-29 13:17:02.614 aqrew_ios [720:179633] ViewController:didLayoutSubviews()-宽度= 320.000000高度= 568.000000
I've been through the SO How to enable native resoltuion and have the following in the LaunchImage assets setup and working, app is portrait only, iphone only: 我已经通过SO如何启用本机解析,并且在LaunchImage资产设置和工作中具有以下内容,应用仅是纵向的,仅是iphone的:
Launchimage screenshot Launchimage屏幕截图
AppIcons are: 应用图标是:
AppIcon screenshots AppIcon屏幕截图
(I'm not allowed to post images as on this account (work) I dont have 10 rep points!) (我不可以在此帐户上发布图片(工作),因为我没有10个代表点!)
However whilst it works perfectly on the iOS simulator its not working on the real device, would appreciate any ideas.... 但是,尽管它在iOS模拟器上可以完美运行,但在实际设备上却无法正常运行,请多多关照。
Thanks 谢谢
If you go into the device settings app, in the 'display & brightness' section there is a setting called 'display zoom' which can be set to standard or zoomed. 如果您进入设备设置应用程序,则在“显示和亮度”部分中有一个名为“显示缩放”的设置,可以将其设置为标准或缩放。 When zoom is enabled an iPhone 6+ scales up an iPhone 6 sized window, and an iPhone 6 zooms up an iphone 5 sized one.
启用缩放后,iPhone 6+会放大iPhone 6大小的窗口,而iPhone 6会放大iPhone 5大小的窗口。
(This caused me some stressful hours a couple months ago) (这使我几个月前感到有些压力)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.