How to handle iPhone 6S Plus font size?

The screen of the iPhone 6S Plus is very large compared to other screen sizes. I cannot find a good way to handle the font size on a label without resizing it programmatically.

How do I adjust the font size on a label so that it looks smaller on iPhone 5 and larger on iPhone 6 Plus?

+7
ios size-classes iphone-6-plus
source share
3 answers

Do not change the font size for iPhone 6 or iPhone 6+.

People buy these phones to see more content. 6+ displays things a little more than other phones anyway (yes, it has larger pixels, not just more pixels), and if the user wants an even larger display, they can switch the entire phone to zoom mode (like 6+, so and 6, which turns 6+ into big 6, and 6 into big 5).

Just use autorun to arrange things according to screen size.

+5
source share

You cannot target the iPhone 6 Plus using AutoLayout because it is not designed for the size of your hard drive. You either need to use the code or do something like this:

if UIScreen.mainScreen().bounds.size.width == 375 { // iPhone 6 label.font = label.font.fontWithSize(20) } 

or just create an invisible view and set upper and lower limits for it .

+1
source share

I think it's better to use adaptive fonts ( here is an example of the Adaptive Fonts section)

+1
source share

All Articles