iOS difference between isKindOfClass and isMemberOfClass

后端 未结 6 722
礼貌的吻别
礼貌的吻别 2020-11-28 01:37

What is the difference between the isKindOfClass:(Class)aClass and the isMemberOfClass:(Class)aClass functions? I know it is something small like,

6条回答
  •  感情败类
    2020-11-28 02:09

    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.

提交回复
热议问题