How can I find out the type of a NSDictionary element?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s various sorts of introspection you can perform on any object at runtime, contained within the NSObject protocol.
http://developer.apple.com/documentation/
e.g.
You can test the class of an object at runtime by comparing it to a class object, which you can obtain by sending a
classmessage.BOOL test = [self isKindOfClass:[SomeClass class]];