Kamilski81
Kamilski81

Reputation: 15117

How do I update the Font that is backinng text style "Title 1" in ios/xcode?

Sort of like CSS, I want to just use my custom font for "Title 1" heading. I'm not sure how to do this in my storyboard.??

enter image description here

Upvotes: 2

Views: 719

Answers (1)

DonMag
DonMag

Reputation: 77482

As of iOS 9, the iOS System Font is "San Francisco" ... previously it was "Helvetica Neue".

All of those Text Styles are based on the System Font, as are the fonts returned by:

// Obj-C
UIFont *fnt = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption1];

// Swift
let fnt = UIFont.preferredFont(forTextStyle: UIFontTextStyle.caption1)

Upvotes: 4

Related Questions