Convert NSString to int
NSString *aNumberString = @"123"; int i = [aNumberString intValue];
Convert int to NSString
int aNumber = 123; NSString *aString = [NSString stringWithFormat:@"%d", aNumber];
Objective-C 字符串与数值互相转换,布布扣,bubuko.com
原文:http://www.cnblogs.com/savagemorgan/p/3909263.html