BOOL res1 = [(id)[NSObject class]isKindOfClass:[NSObject class]];//1 BOOL res2 = [(id)[NSObject class]isMemberOfClass:[NSObject class]];//0 BOOL res3 = [(id)[LGPerson class]isKindOfClass:[LGPerson class]];//0 BOOL res4 = [(id)[LGPerson class]isMemberOfClass:[LGPerson class]];//0 使用runtime解释为什么?
2022-09-05 14:06:05 40.9MB runtime isKindOfClass isMemberOfClass
1