How does Apple show more in the Messages app in Portrait on iPhone 6 Plus?

With the new iPhone 6 Plus, the phone can show more content in the landscape than the regular iPhone 6 or its predecessors. This makes sense, as in the landscape the phone identifies itself as "regular width" for its size class.

However, in a portrait, its "still compact width, regular height for a size class, no matter what iPhone. How does Apple then show more on the iPhone 6 Plus in a portrait when there is no size class to identify it?"

Do they hardcode it based on device width? Doesn't this contradict the whole philosophy of size classes?

enter image description here

+3


source to share


1 answer


They use auto layout to force their labels to use the screen width. There's a good description of how to achieve this in this SO answer .



Apple also used Responsive Layout to implement Landscaping in Mail for 6+.

+1


source







All Articles