How can I find out the type of a NSDictionary element?

cocoa, cocoa-touch, iphone, objective-c

Solution

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 `class` message.

`BOOL test = [self isKindOfClass:[SomeClass class]];`

Problem

How can I find out the type of a NSDictionary element?

Original source