OC小知识点
2019-02-15 本文已影响1人
CAICAI0
- property. h文件或是扩展文件中声明的所有property。可以通过
OBJC_EXPORT objc_property_t _Nonnull * _Nullable class_copyPropertyList(Class _Nullable cls, unsigned int * _Nullable outCount) OBJC_AVAILABLE(10.5, 2.0, 9.0, 1.0, 2.0);
函数获得所有的属性。 - Ivar.变量。指对象内存空间中包含的所有变量。可以通过
OBJC_EXPORT Ivar _Nonnull * _Nullable class_copyIvarList(Class _Nullable cls, unsigned int * _Nullable outCount) OBJC_AVAILABLE(10.5, 2.0, 9.0, 1.0, 2.0);
获取所有的变量