Quantcast
Channel: iOS SDK Development Forums — iPhone Dev SDK
Viewing all articles
Browse latest Browse all 45

NSNumberFormatterPadAfterPrefix

$
0
0
Hi,

I am trying to add a space between currency symbol and numbers(Ex:$ 10.00). I tried NSNumberFormatterPadAfterPrefix,but still padding is not added to the currency. I copied my code here


NSNumberFormatter *nf = [[NSNumberFormatter alloc] init];
[nf setNumberStyle:NSNumberFormatterCurrencyStyle];
nf.minimumFractionDigits = 2;
nf.maximumFractionDigits = 2;
nf.paddingPosition = NSNumberFormatterPadAfterPrefix;

Am i missing anything?

Viewing all articles
Browse latest Browse all 45

Trending Articles