Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class aClass = [NSArray class];
- Class aSuperClass = class_getSuperclass(aClass); // Points to NSObject
- // What's the best way to test at runtime whether aSuperClass is pointing
- // to an NSObject type?
- BOOL isNSObjectClass = [aSuperClass isMemberOf:[NSObject class]]; // This returns NO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement