iPhone6 Display Zoom Functionality disturbs the wh

2020-02-28 20:39发布

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.

Problem:

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:

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

enter image description here

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.

enter image description here

Any help and suggestion will appreciated.

1条回答
看我几分像从前
2楼-- · 2020-02-28 21:10

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

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

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

enter image description here

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

enter image description here

I hope this will also help other.

Thanks Cheers!

查看更多
登录 后发表回答