How to find out the type of an NSDictionary element?

How to find out the type of an NSDictionary element?

+4
source share
1 answer

There are various types of introspection that you can execute on any object at runtime contained in the NSObject protocol.

http://developer.apple.com/documentation/

eg.

You can check the class of an object at runtime by comparing it with a class object that you can get by sending a class message.

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

+8
source

All Articles