摘要:
Object c也有和java相同的方法获取对象的属性列表方法,也就时反射了。 http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html下面这段代码演示了如何获取类的属性相关信息 #import <objc/runtime.h>#import <Foundation/Foundation.h>unsigned int outCount, i;objc_property_t *properties = class 阅读全文
posted @ 2011-05-26 14:07
Likwo
阅读(5098)
评论(0)
推荐(0)