标签:
NSArray *arr1 = [NSArrayarray]; NSArray *arr2 = [NSArrayarray]; NSObject *ob = [[NSObjectalloc] init]; NSLog(@"%hhd", [[NSArrayarray] isKindOfClass:[NSObjectclass]]); // YES NSLog(@"%hhd", [[NSArrayarray] isMemberOfClass:[NSArrayclass]]); // NO NSLog(@"%hhd", [arr1 isKindOfClass:[ob class]]); // YES NSLog(@"%hhd", [arr1 isMemberOfClass:[ob class]]); // NO NSLog(@"%hhd", [arr1 isKindOfClass:[arr2 class]]); // YES NSLog(@"%hhd", [arr1 isMemberOfClass:[arr2 class]]); // YES
isKindOfClass和isMemberOfClass 区别
标签:
原文地址:http://www.cnblogs.com/lxd2502/p/5756317.html