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
-
formatter
The formatter converts NSNumbers into autoupdating localized currency related strings.
property -
decimalValue
The number value of the currency string.
property -
activeOffset
The number of active significant digits allowed to change in every call of the text fields delegate methods.
property -
usesArbitraryFractionDigits
Allows 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 activeOffset
Discussion
Example: $0.4523 : the activeOffset is equal to 1. If equal to 2, $0.0452.
Declared In
JOECurrencyTextField.h
decimalValue
The number value of the currency string.
@property (nonatomic, strong, readonly) NSDecimalNumber *decimalValue
Declared In
JOECurrencyTextField.h