首页 > 其他 > 详细

isKindOfClass isMemeberOfClass 的区分

时间:2015-07-05 21:04:09      阅读:308      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!