iPhone 6/6 +屏幕尺寸问题 [英] iPhone 6/6+ Screen size issue

查看:124
本文介绍了iPhone 6/6 +屏幕尺寸问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我疯狂。在做了必要的事情后,在iPhone 6模拟器,我得到正确self.view.bounds {{0,0},{375,667}},但在实际的iPhone 6设备,它仍然显示{{0,0} ,{320,568}}。这是我尝试的:

This is driving me crazy. After doing the necessary things, on iPhone 6 simulator, I am getting correct self.view.bounds {{0, 0}, {375, 667}} but on the actual iPhone 6 device it is still showing {{0, 0}, {320, 568}}. Here is what I tried :


  1. 更新Images.xcassets包括从6+下载到iPhone 4的所有设备的启动图像,

  1. Updated Images.xcassets to include launch images for all devices starting from 6+ down to iPhone 4,

Images.xcassets中的@ 3x图示(180x180)已更新,

Updated @3x icon (180x180) in Images.xcassets,

尝试使用xib作为启动文件(XCode-> File-> New-> File-> Launch Screen),

Even tried a xib as launch file (XCode->File->New->File->Launch Screen),



<但所有在虚拟的实际iPhone 6设备,虽然它在模拟器上工作。任何想法?

But all in vain on actual iPhone 6 device, though it works on simulator. Any ideas ?

推荐答案

Ok我得到了另一个线程的答案。问题是我在iPhone 6上使用缩放显示。我将其设置回标准,界限是正确的。

Ok I got the answer from another thread. The issue was I was using Zoomed display on iPhone 6. I set it back to standard and the bounds were correct.

这篇关于iPhone 6/6 +屏幕尺寸问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆