如何将NSString转换为NSNumber
NSString
int
, float
, char
, unsigned int
long long scannedNumber;NSScanner *scanner = [NSScanner scannerWithString:aString]; [scanner scanLongLong:&scannedNumber]; NSNumber *number = [NSNumber numberWithLongLong: scannedNumber];
摇曳的蔷薇