I would like to get a dec value from a 20 bytes Hex-encoded string, and I coded as following:
//str is a 20 bytes hex string. For example, the variable str = (__NSCFString *) @"3EDB616369C275F09E03EC2E6BDF85F888851333"
unsigned int value = 0;
NNscanner *scanner = [NSScanner scannerWithString:str];
[scanner scanHexInt:&value];
But, however, I dont know why the line scanHexInt returns No and the variable value is not updated.