开发者

Currency Format change in the Device, Why?

开发者 https://www.devze.com 2023-04-04 08:54 出处:网络
I am using XCODE 4. In My app I am using NSCurrencyFormatter Code... NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];

I am using XCODE 4. In My app I am using NSCurrencyFormatter Code...

    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
 [formatter setNumberStyle:NSNumberFormatterCurrencyStyle]; 
  ... = [formatter stringFrom开发者_如何学GoNumber:number];

Problem is On Device Instead of $ it shows RS. In simulator it works fine with $.


I just need to change the iphone setings.. Settings --> General --> International -->Region Settings to Whichever country I need to make. Then My currency will set on Iphone according to this..

0

精彩评论

暂无评论...
验证码 换一张
取 消