NSNumberFormatter *format = [[NSNumberFormatter alloc]init];
[format setGroupingSize:3];
[format setGroupingSeparator:@","];
[format setUsesGroupingSeparator:YES];
NSNumber *num = [NSNumber numberWithInt:123456789];
NSString *strValue = [format stringFromNumber:num];
NSLog(@"*.*%@",strValue);//打印结果*.*123,456,789