-
Notifications
You must be signed in to change notification settings - Fork 1
DateFormatterBinding
Michael edited this page May 3, 2016
·
3 revisions
Property binding that specifies and optionally customizes a copy of an instance of NSNumberFormatter.
The number formatter binding is based on and inherits all features from FormatterBinding.
You can specify a key path referencing an NSNumberFormatter instance like $root.myNumberFormatterInstance
or leave the primary expression empty (in which case the binding will create a new NSNumberFormatter instance).
If you specify the formatter using a key path and also define attributes, the binding will create a copy of the formatter (to ensure that the original formatter is not modified by the binding).
A property of type NSDateFormatterBinding
Attribute | Description |
---|---|
dateStyle |
.NoStyle , .ShortStyle , .MediumStyle , .LongStyle , .FullStyle
|
timeStyle |
.NoStyle , .ShortStyle , .MediumStyle , .LongStyle , .FullStyle
|
calendar | Calendar identifier or key path to NSCalendar instance |
timeZone | Time zone name or abbreviation or key path to NSTimeZone instance |
locale | referenced by its identifier, f.e. "de_DE" or key path to NSLocale instance |
See FormatterBinding