BKCurrencyTextField maximum fraction digits can not be 3.
Opened this issue · 0 comments
KanybekMomukeyev commented
Hi, thanks for sharing this great library.
I have problem with maximum fraction digits, when this number is equal to 3.
for ex in BKCurrencyTextField.m file:
_numberFormatter = [[NSNumberFormatter alloc] init];
_numberFormatter.numberStyle = NSNumberFormatterCurrencyStyle;
[_numberFormatter setMaximumFractionDigits:3];
[_numberFormatter setCurrencyCode:@"KGS"];
[_numberFormatter setCurrencySymbol:@""];
[_numberFormatter setLocale:[NSLocale localeWithLocaleIdentifier:@"ru_RU"]];
_nonNumericRegularExpression = [BKMoneyUtils nonNumericRegularExpression];
_numberCharacterSet = [BKMoneyUtils numberCharacterSet];
self.placeholder = [_numberFormatter stringFromNumber:@(0)];
in this case if press any number, for ex 9, then press 0(zero) nothing changes.
Another words when setMaximumFractionDigits:2 everything is ok, but when 3 there is a problem.