-
Notifications
You must be signed in to change notification settings - Fork 1
UILabel_textBinding
Michael edited this page Apr 22, 2016
·
7 revisions
Read-only binding that connects a source object with the text property of a label.
You can specify binding constants or key paths to reference source values. Source values which are not strings will, in the absence of declared formatters, use the description of the source value object.
The text
or attributedText
property of the bound label.
Formatter binding attributes are used to convert the source value into a text. Please not that you can only define one of the formatter attributes formatter, numberFormatter or dateFormatter. Please check the documentation of the corresponding formatter bindings.
Attribute | Description |
---|---|
formatter | [[Formatter binding |
numberFormatter | [[Number formatter binding |
dateFormatter | [[Date formatter binding |
Attribute | Description |
---|---|
textForUndefinedValue | Text used if the source value is nil |
textForNo | Text used if the source value is a number and that number is 0 |
textForYes | Text used if the source value is a number different from 0 |