iOS runtime ~ class_copyPropertyList与class_copyIvarList区别

来源:互联网 发布:淘宝lv女包 编辑:程序博客网 时间:2024/06/05 01:02

//联系人:石虎  QQ: 1224614774昵称:嗡嘛呢叭咪哄

class_copyPropertyListclass_copyIvarList区别


class_copyPropertyList: 通过类名获得类的属性变量。

class_copyIvarList: 通过类名获得类的实例变量。


也就是说

class_copyPropertyList获得的是由@property修饰过的变量,

class_copyIvarList获得的是class_copyPropertyList修饰的以及在m文件的中@implementation内定义的变量


谢谢!!!