In objective c, how can i check if a string/NSNumber is an integer or int
I've put this in my category NSString (Util).
NSString (Util)
- (BOOL) isInt { if ([self isEqualToString:@"0"]) return YES; return (self.intValue != 0); }