int outVal; //-60
int outVal;
NSScanner* scanner = [NSScanner scannerWithString:@“ffffffc4”];
[scanner scanHexInt:&outVal];
NSLog(@"%d", outVal);
objective-c 16进制转有符号10进制oc
猜你喜欢
转载自blog.csdn.net/kunga0814/article/details/88851175
今日推荐
周排行