您的位置:首页 > 其它

值得注意的小细节

2016-04-09 21:15 162 查看
发现@”“和nil不是一个含义

isKindOfClass和isMemberOfClass的区别

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.

也就是isKindOfClass的范围更大
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: