// objClass是class对象,并不是meta-class对象
Class objClass =[[NSObject class] class];// 判断是否为meta-class对象(元类对象)
BOOL result =class_isMetaClass([NSObject class]);// 根据字符串返回相应的class对象(类对象)
Class objc_getClass(constchar*aClassName){if(!aClassName)return Nil;// NO unconnected, YES class handlerreturnlook_up_class(aClassName, NO, YES);}/*
传入instance对象,返回class对象
传入class对象,返回meta-class对象
传入meta-class对象,返回基类的meta-class对象
*/
Class object_getClass(id obj){if(obj)return obj->getIsa();elsereturn Nil;}