zoukankan      html  css  js  c++  java
  • 动态识别类型

    -(BOOL) isKindOfClass: classObj

    is object a descendent or member of classObj
    此对象是否是 classObj 的子孙或一员

    -(BOOL) isMemberOfClass: classObj

    is object a member of classObj
    此对象是否是 classObj 的一员

    -(BOOL) respondsToSelector: selector

    does the object have a method named specifiec

    by the selector
    此对象是否有叫做selector 的 method

    +(BOOL) instancesRespondToSelector: selector

    does an object created by this class have the

    ability to respond to the specified selector
    此对象是否是由有能力响应指定 selector 的对象所产生

    -(id) performSelector: selector

    invoke the specified selector on the object
    唤起此对象的指定selector

  • 相关阅读:
    git上传本地代码
    oracle 时间格式转化以及计算
    windows 下使用sqlplus
    filter 过滤器加载流程
    vscode java
    vscode cpp
    manual jar
    toy jar
    inteli shortcut
    eng
  • 原文地址:https://www.cnblogs.com/PJXWang/p/4936268.html
Copyright © 2011-2022 走看看