JOECurrencyTextField Class Reference
| Inherits from | UITextField |
| Conforms to | UITextFieldDelegate |
| Declared in | JOECurrencyTextField.h |
Overview
JOECurrencyTextField is a subclass of UITextField that specifically deals with the entry and formatting of currency.
Tasks
Properties
-
formatterThe formatter converts NSNumbers into autoupdating localized currency related strings.
property -
decimalValueThe number value of the currency string.
property -
activeOffsetThe number of active significant digits allowed to change in every call of the text fields delegate methods.
property -
usesArbitraryFractionDigitsAllows the user to set an arbitrary number of digits after the decimal seperator by pressing the seperator on the keypad.
property
Creating JOECurrencyTextField
-
– initWithFrame:The designated initializer when using code.
Dismissing the keyboard
-
– dismissKeyboard:This method resigns the first responder, dismissing the keyboard.
Properties
activeOffset
The number of active significant digits allowed to change in every call of the text fields delegate methods.
@property (nonatomic, assign) NSUInteger activeOffsetDiscussion
Example: $0.4523 : the activeOffset is equal to 1. If equal to 2, $0.0452.
Declared In
JOECurrencyTextField.hdecimalValue
The number value of the currency string.
@property (nonatomic, strong, readonly) NSDecimalNumber *decimalValueDeclared In
JOECurrencyTextField.h