标签:
https://github.com/ming1016/study/wiki/Objc-Runtime
先看看isKindOfClass和isMemberOfClass在Object.mm中的实现
- (BOOL)isKindOf:aClass { Class cls; for (cls = isa; cls; cls = cls->superclass) if (cls == (Class)aClass) return YES; return NO; } - (BOOL)isMemberOf:aClass { return isa == (Class)aClass; }
标签:
原文地址:http://www.cnblogs.com/studyNT/p/5324106.html