码迷,mamicode.com
首页 > 其他好文 > 详细

isKindOfClass isMemeberOfClass 的区分

时间:2015-07-05 21:06:19      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:

isKindOfClass

If you use such constructs in your code, you might think it is alright to modify an object that in reality should not be modified. Doing so might then create problems for other code that expected the object to remain unchanged.

If the receiver is a class object, this method returns YES if aClass is a Class object of the same type, NO otherwise.

 

YES if the receiver is an instance of aClass or an instance of any class that inherits from aClass, otherwise NO.

 

isMemberOfClass

YES if the receiver is an instance of aClass, otherwise NO.

isKindOfClass isMemeberOfClass 的区分

标签:

原文地址:http://www.cnblogs.com/studyNT/p/4622947.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!