iOS开发中金额的千位分割符

NSNumber *remainNum = [NSNumber numberWithInteger:remainMoney];
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
numberFormatter.numberStyle = NSNumberFormatterRoundFloor;
[numberFormatter setPositiveFormat:@" ###,###元"];
self.remainBidLab.text = [numberFormatter stringFromNumber:remainNum];

你可能感兴趣的:(iOS开发中金额的千位分割符)