objc_property_attribute_t attributes[] = {nonatmoic, strong, type, ivar, getter, setter};
//...52:01.949 RunTimeDemo[786:37263] 添加成功
2017-02-03 15:52:01.949 RunTimeDemo[786:37263] 获取到的属性名为: name
替换属性...objc_property_attribute_t attributes[] = {nonatmoic, strong, type, ivar};
//替换属性
class_replaceProperty...([aClass class], "name", attributes, 4);
运行时创建新类:
Class objc_allocateClassPair(Class superclass, const...@selector(printA), (IMP)printA, "v@:");
//创建实例
id ob = [NewClass new];
//实例执行方法