NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
[numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[numberFormatter setLocale:[NSLocale systemLocale]];
NSString *formattedString = [numberFormatter stringFromNumber:@100];
沒有留言:
張貼留言