iPhone6显示器缩放功能会扰乱整个视图 [英] iPhone6 Display Zoom Functionality disturbs the whole view

查看:184
本文介绍了iPhone6显示器缩放功能会扰乱整个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了iPhone6'显示缩放功能的问题,因为Xcode 6.1.1模拟器没有显示缩放功能进行测试,只有标准显示。

I'm faces a problem with iPhone6' Display Zooms functionality, as on Xcode 6.1.1 simulator don't have Display Zoom functionality to test and its have standard display only.

问题:

当我在模拟器和iPhone6(标准显示器)上运行我的代码时工作正常,但是当我在iPhone6上运行我的代码(启用了显示缩放功能)时,我的整个视图会从其原始位置干扰,甚至UIButton在这种情况下甚至都不显示或隐藏。

When I run my code on simulator and iPhone6 (with standard display) its work fine, but when I run my code on the iPhone6 (with Display Zoom functionality on) then my whole view disturbs from its original position and even UIButton are not even display or hide in this case.

以下是我的场景中的两张图片:

Here are the two images of my scenario:

在下图中(带标准显示屏的iPhone 6)所有观点都在其原始位置,一切都很好。

In the below image(iPhone 6 with standard display) all view is on its original position and everything is fine.

但在下图中(带有显示缩放功能的iPhone 6处于打开状态),所有视图中的内容都会干扰其原始位置和小球( UIButton)在大球周围甚至隐藏在这种情况下。

But in the following image (iPhone 6 with Display Zoom functionality is On) all things on view disturb from its original position and small ball(UIButton) around big ball are even hidden in this case.

任何帮助和建议都将受到赞赏。

Any help and suggestion will appreciated.

推荐答案

经过大量的搜索和实验后,我能够解决这个问题。

After doing a lot of searching and experiments, I was able to resolve this issue.

有两件事(我用特定的View xib文件完成)帮助我:

There are two things (I done with that specific View xib file) which help me out:

1)取消选中使用自动布局使用大小类 strong>。

1) Uncheck the Use Auto Layout and Use Size Classes.

2)不选择任何 Autoresizing ,该视图在iPhone6的显示缩放中延伸。

2) Not select any Autoresizing of that view which stretches in iPhone6' Display Zooms.

我希望这个也会帮助其他人。

I hope this will also help other.

谢谢
干杯!

这篇关于iPhone6显示器缩放功能会扰乱整个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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