bjective-C语法之动态类型(isKindOfClass, isMemberOfClass,id

*c1=[Class1 new]; if ([c1 isKindOfClass: [NSObject class]]) { NSLog(@ c1 is a kind of NSObject. ); } if ([c1 isMemberOfClass:[Class1 class]]) { NSLog(@ c1 is Member of Class1 www.se868.infowww.hao123.com