runtime(二) 修改和添加屬性

改變成員變量 (void)getIvarList { unsigned int count = 0; // 1. 獲取某個類的成員變量列表 Ivar *ivarList = class_copyIvarList([self class], &count); // 2.遍歷成員變量列表 for (int i = 0; i < count; i++) { con
相關文章
相關標籤/搜索