Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Class aClass = [NSArray class];
  2. Class aSuperClass = class_getSuperclass(aClass); // Points to NSObject
  3.  
  4. // What's the best way to test at runtime whether aSuperClass is pointing
  5. // to an NSObject type?
  6.  
  7. BOOL isNSObjectClass = [aSuperClass isMemberOf:[NSObject class]]; // This returns NO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement