Search code examples
iosautolayoutxcode8

Why aren't these constraints working properly on iPad 9.7" and 12.9"?


I have the following view...

displayed on iPhone6s/iPhone7

The problem I have is displaying this view on iPad 12.9" and iPad 9.7" the constraints I have setup don't seem to work at all. here are the contraints

contraints

more constraints

But when displayed on iPad 9.7" this is what it looks like... view displayed on iPad 9.7"

Where am I going wrong? What should the constraints be so that this simple view can be laid out properly on iPhone6s, iPhone7 plus, iPad 9/7" and iPad 12.7"?? I don't even care if the iPad views are perfect, just so long as all the buttons are visible so that I can get Apple to stop rejecting my app for not supporting iPad.


Solution

  • You have not set Universal (iPhone + iPad) type as the supported application devices. That is why it displays iPhone screen with scaling factor 1x,2x on iPad.

    enter image description here