Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone6 Display Zoom Functionality disturbs the whole view

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.

like image 270
Irfan Avatar asked Feb 08 '15 15:02

Irfan


1 Answers

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!

like image 150
Irfan Avatar answered Oct 21 '22 03:10

Irfan