UILabel
class UILabel : UIView, NSCoding, UIContentSizeCategoryAdjusting
-
Add the monospaced number font descriptor to the current
font
.Declaration
Swift
public func useMonospacedNumbers()
-
Allows to set the text and optionally animate the change.
Declaration
Swift
public func setText(_ string: String?, animated: Bool)
Parameters
string
The text to set
animated
Whether to animate the change or not. If
false
, the method call is equivalent to using the settertext
-
Allows to set an attributed text and optionally animate the change.
Declaration
Swift
public func setAttributedText(_ attributedString: NSAttributedString, animated: Bool)
Parameters
attributedString
The attributed string to set
animated
Whether to animate the change or not. If
false
, the method call is equivalent to using the setterattributedText