https://github.com/istsest/CurrencyNumericTextField
Currency, numeric TextField and Label for iOS
https://github.com/istsest/CurrencyNumericTextField
Last synced: 8 months ago
JSON representation
Currency, numeric TextField and Label for iOS
- Host: GitHub
- URL: https://github.com/istsest/CurrencyNumericTextField
- Owner: istsest
- Created: 2013-05-27T08:08:40.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-27T08:59:15.000Z (about 12 years ago)
- Last Synced: 2024-08-05T19:36:49.436Z (11 months ago)
- Language: Objective-C
- Homepage:
- Size: 291 KB
- Stars: 25
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cureency / Numeric TextField and Label
==========================
numericField1.currencyPrefix = @"$";
numericField1.text = @"12345";
numericField1.decimalCount = 2;
[numericField1 becomeFirstResponder];numericField2.currencyPrefix = @"\\";
numericField2.text = @"1085";
numericLabel.text = @"1085";
numericLabel.currencyPrefix = @"\\";numericLabel.text = [NSString stringWithFormat:@"%d", (int)([numericField1.numericString doubleValue] * [numericField2.numericString doubleValue])];