[IOS] - IOS 숫자 3자리 콤마찍기

IOS ( Object-C ) 2014. 9. 2. 21:53
반응형

NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];

[numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle];


NSString *commaCount = [numberFormatter stringFromNumber:[NSNumber numberWithInt:[dataCount integerValue]]];


NSLog("Comma : %@", commaCount);

반응형
: