- determine if the object is a instance of a NSNumber or other Class
- if the object is nil or if it's a NSNumber or other Class
or use this to determine if the object is a kind of class
if ([obj isKindOfClass:[NSNumber class]])
This blog is for developers who are just starting out with programming objective-c on apple's ipod or ipad.
you forgot a = in the first comparison (should be == ) right?
ReplyDeleteThanks Pierre. updated the post.
ReplyDelete