iOS Fonts - kgleong/software-engineering GitHub Wiki
Fonts in iOS
Making a font bold
@IBOutlet weak var titleLabel: UILabel!
override func awakeFromNib() {
titleLabel.font = UIFont.boldSystemFontOfSize(titleLabel.font.pointSize)
}
The above code block sets the titleLabel
to use the bold system font and respects the point size set by Interface Builder.