Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

NSNumberFormatterPadAfterPrefix

iphonegamedeveloperiphonegamedeveloper Posts: 431Registered Users @ @
edited January 2015 in iOS SDK Development Forums
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?
Post edited by iphonegamedeveloper on
Sign In or Register to comment.