OC小知识点

2019-02-15  本文已影响1人  CAICAI0
  1. 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);函数获得所有的属性。
  2. 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);获取所有的变量
上一篇 下一篇

猜你喜欢

热点阅读