简体   繁体   English

iPhone 6上的本机分辨率可在模拟器上使用,但不能在设备上使用

[英]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.

相关问题 在iPhone模拟器中工作正常,但在iPhone设备中锁定 - Works fine in iphone simulator but lockup in an iphone device Facebook登录可在iPhone模拟器上使用,但不能在iPhone设备上使用 - facebook login works on iphone simulator but not on iphone device 使用openAL的iPhone应用程序在模拟器中工作,但不在设备上 - iPhone app using openAL works in simulator, but not on device LAPACK 例程适用于 iPhone 模拟器,但不适用于设备 - LAPACK routine works on iPhone simulator, but not on device 适用于模拟器,不适用于 iPhone 设备 - Works on Simulator, doesn't work on the iPhone device 应用程序适用于iPhone模拟器,但在真正的iPhone设备上崩溃 - App works on iPhone Simulator, but crashes on real iPhone Device iPhone上的Base64编码,可在模拟器中使用,在设备上中断 - Base64 encoding on the iPhone, works in simulator, breaks on device 适用于iOS模拟器,但不适用于iPhone - Works on iOS Simulator but not on iPhone Firebase 可以在模拟器中运行,但不能在 iPhone 上运行 - Firebase Works In Simulator But Not On iPhone sqlite可以在模拟器上运行,但不能在设备上运行 - sqlite works on simulator, but not on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM