7

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.

7
  • IIRC, display zoom just emulates the resolution of an iPhone 5/5S/5C. How does your app performs on these devices?
    – Cyrille
    Commented Feb 8, 2015 at 19:44
  • I didn't check on those devices, current i am facing this issue on the iphone 6 with display zoom on only any idea that how i fixed it or how i check this on xcode simulator is it the Apple's bug?
    – Irfan
    Commented Feb 8, 2015 at 20:52
  • There is nothing to answer here. Make sure your ui behaves as expected on iPhone 5/5S simulators and it will behave the exact same way on iPhone 6 with Zoom Mode on. Commented Feb 9, 2015 at 4:20
  • yup the only issue I am facing is on iPhone6, so can we test zoom mode on simulator or something?
    – Irfan
    Commented Feb 9, 2015 at 4:52
  • Irfan, I face the same issue in my app. It works as expected in the 'Standard Version'. But when in 'Zoomed' mode, the frames of the UIElements are disturbed. These links helped me in understanding the issue, iphonehacks.com/2014/09/use-display-zoom-iphone-6-plus.html paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions But, how to handle it, am still figuring it out. Most probably need to check the nativeScale value, and update the frames accordingly! Just a thought!
    – coder284
    Commented Mar 12, 2015 at 17:52

1 Answer 1

3

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!

6
  • Is that an alternative other than disabling Auto Layout (which is essential for different screen sizes for different devices) ?
    – Raptor
    Commented Oct 8, 2015 at 8:00
  • 4
    Other way is to use Auto layout properly :)
    – Irfan
    Commented Oct 13, 2015 at 12:20
  • 2
    Even with proper Auto Layout, the layout will probably be "broken" still, in Display Zoom mode.
    – Raptor
    Commented Oct 14, 2015 at 2:12
  • Its still mystery then, the only solution comes in my mind is that we have to overcome this issue by implementing the screen design and continuously tests it on zoomed iOS device. If you find any other solution kindly do share here as an answer.
    – Irfan
    Commented Oct 14, 2015 at 5:18
  • will do. Display Zoom will enlarge fonts & distort some buttons, when using Auto Layout.
    – Raptor
    Commented Oct 14, 2015 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.