开发者社区 问答 正文

3、class_copyIvarList & class_copyPropertyList区别

3、class_copyIvarList & class_copyPropertyList区别

展开
收起
游客bnlxddh3fwntw 2020-04-13 15:04:52 1361 分享 版权
1 条回答
写回答
取消 提交回答
  • class_copyIvarList:获取的是类的成员变量列表,即:@interface{中声明的变量}

    class_copyPropertyList:获取的是类的属性列表,即:通过@property声明的属性

    2020-04-13 15:05:04
    赞同 展开评论
问答地址: