Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift uilabel font bold

// Define attributes
let labelFont = UIFont(name: "HelveticaNeue-Bold", size: 18)
let attributes :Dictionary = [NSFontAttributeName : labelFont]

// Create attributed string
var attrString = NSAttributedString(string: "Foo", attributes:attributes)
label.attributedText = attrString
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #uilabel #font #bold
ADD COMMENT
Topic
Name
3+5 =