I'm building an iOS app from scratch on Xcode 6 beta 4. I'm trying to make it universal and to use autolayout to have the same views for iPhone and iPad.
What is the best way to manage font sizes?
For instance, a button with font size 10 might be OK on an iPhone, but I might want it to be bigger when my button scales up for the iPad. Should it be managed programmatically or is there a smart way to do this?
Change Font And Size Of UILabel In Storyboard To change the font or the size of a UILabel in a Storyboard or . XIB file, open it in the interface builder. Select the label and then open up the Attribute Inspector (CMD + Option + 5). Select the button on the font box and then you can change your text size or font.
Usually, the default font is Calibri or Times New Roman, and the default font size is 11 or 12 point.
When you're using universal storyboards, each text-displaying control in a storyboard will now have a small +
icon to the left of the font setting in the Attributes Inspector. If you click it, it will allow you to set different values for different size classes.
From @OrangeDog comment
iPhone:
wC hA
| iPad:wR hA
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With