How to check if the content of a NSString is an integer value? Is there any readily available way?
There got to be some better way then doing something like this:
Something like this:
NSScanner* scan = [NSScanner scannerWithString:toCheck]; int val; return [scan scanInt:&val] && [scan isAtEnd];