13

In Xcode 7.1 beta 1 only the usual compact and regular size classes are available—in Interface Builder and in code.

Will there be new size classes coming for the iPad Pro? It would also be interesting to know which size classes apps will have in the various split-screen setups.

Frank Rupprecht
  • 9,191
  • 31
  • 56

1 Answers1

8

No, iPad Pro uses the same size classes (regular) as iPad.

I found the following text in Apple documentation:

iPad (including iPad Pro) uses the regular size class in both dimensions and in both orientations. In other words, the iPad display environment is always horizontally and vertically regular.

zavié
  • 4,301
  • 2
  • 34
  • 46
  • 13
    This is really... unsatisfying. I thought we are supposed to rely on size classes from now on and shouldn't discriminate by view sizes anymore. How are we supposed to build custom interfaces for larger devices then? But obviously Apple also violates these guidelines (see `UISplitViewController`...) – Frank Rupprecht Sep 22 '15 at 14:50
  • Yea a bit confusing to me as well :) Seems like the size classes is only thought for 5.5" iPhone. – zavié Sep 23 '15 at 06:06
  • my guess is that it mostly works for multitasking splitview right now the iPad is in landscape mode H:Compact in 1/4 and 1/2 for the iPad Pro I think it might change to H:Compact in 1/4 and H:Regular in 1/2 – CiNN Nov 02 '15 at 10:38
  • Guess you will be using a lot of >= and <= constraints to differentiate between your layouts for iPad Pro and smaller iPads. – peacetype Nov 14 '15 at 01:07
  • @peacetype can you give an example? I'm struggling with position, using constant values, which is ok on all iPads except pro. – Jules Nov 28 '15 at 19:37
  • 1
    @Jules - I have the same problem designing for iPhone 4, 5 & 6 sizes in portrait (all the same size class). I add multiple constraints for each element that I want to respond to changes in screen size. So I determine the exact position of an element for the smallest screen size and set a constraint to be >= to that position. Then I create another constraint for the larger screen size and for that constraint say the position should be <= the exact position I want the element to be on the larger screen size. iOS uses whichever constraint will fit the user's screen, be it a large or small screen. – peacetype Dec 01 '15 at 03:31