What's the deffierence between 'isKindOfClass' and 'isMemberOfClass'?
2013-09-25 14:41 Yu.Hongda 阅读(154) 评论(0) 收藏 举报[[NSMutableData data] isKindOfClass:[NSData class]]; // YES
[[NSMutableData data] isMemberOfClass:[NSData class]]; // NO
isKindOfClass: Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.
isMemberOfClass: Returns a Boolean value that indicates whether the receiver is an instance of a given class.
浙公网安备 33010602011771号