NSNumber 转 NSString

 

 

假设现有一NSNumber的变量A,要转换成NSString类型的B

方法如下:

NSNumberFormatter* numberFormatter = [[NSNumberFormatteralloc] init];

B = [numberFormatter stringFromNumber:A];

[numberFormatter release];

 
posted @ 2015-08-03 15:44  Cheetah_yang  阅读(126)  评论(0编辑  收藏  举报