oc 阿拉伯数字转中文数字

NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
formatter.numberStyle = NSNumberFormatterSpellOutStyle;
NSString *string = [formatter stringFromNumber:[NSNumber numberWithInt:12]];
NSLog(@"str = %@", string);

posted on 2018-04-20 13:07  许广  阅读(226)  评论(0编辑  收藏  举报