标签:
例子:
NSString * numStr = [@"0x110" substringFromIndex:2];
unsigned long long result = 0;
NSScanner *scanner = [NSScanner scannerWithString:numStr];
[scanner scanHexLongLong:&result];
NSLog(@"result - - %lld",result);
参考网址:http://blog.csdn.net/wangyanchang21/article/details/51744937
标签:
原文地址:http://www.cnblogs.com/tiffany-my/p/5960765.html