Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font size on universal storyboard

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?

like image 407
Arnaud Avatar asked Aug 01 '14 17:08

Arnaud


People also ask

How do you change the font size on a storyboard?

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.

What is the universal font size?

Usually, the default font is Calibri or Times New Roman, and the default font size is 11 or 12 point.


Video Answer


1 Answers

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.enter image description here

From @OrangeDog comment

iPhone: wC hA | iPad: wR hA

like image 60
NRitH Avatar answered Sep 22 '22 12:09

NRitH