ios - iPhone 6 plus 尺寸显示为 375.0 x 667.0?
<p><p>这个让我很困惑。</p>
<pre><code>println("screenWidth \(UIScreen.mainScreen().bounds.size.width)")
println("screenHeight \(UIScreen.mainScreen().bounds.size.height)")
println("viewWidth \(self.view.bounds.size.width)")
println("viewHeight \(self.view.bounds.size.height)")
</code></pre>
<p>iphone 6 plus <strong>(USING SIMULATOR)</strong> 返回 6 plus 的正确尺寸:</p>
<pre><code>deviceWidth 414.0
deviceHeight 736.0
viewWidth 414.0
viewHeight 736.0
</code></pre>
<p>iphone 6 plus <strong>(REAL DEAL)</strong> 返回常规 ole 6 的正确尺寸:</p>
<pre><code>deviceWidth 375.0
deviceHeight 667.0
viewWidth 375.0
viewHeight 667.0
</code></pre>
<p>这怎么可能?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您的设备在 Settings->Display & Brightness 下将 Display Zoom 设置为 <em>Zoomed</em>。</p>
<p>引用 Apple 开发者论坛的帖子:</p>
<blockquote>
<p>If the phone is set for zoomed mode, you get either the iPhone 5S screen size (on iPhone 6) or the iPhone 6 size (on iPhone 6 Plus). Keep in mind that on iPhone 6 Plus in zoomed mode you still get a 3x screen, and thus your 3x assets are used.</p>
</blockquote></p>
<p style="font-size: 20px;">关于ios - iPhone 6 plus 尺寸显示为 375.0 x 667.0?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/28281154/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/28281154/
</a>
</p>
页:
[1]