readonly
发布时间:2013-05-07 10:36:02
主要利用ObjectiveC的C API中函数:void objc_setAssociatedObject(id object, const void *key, id value, objc_AssociationPolicy policy)id objc_getAssociatedObject(id object, const void *key)原理详细参见官方的ObjectiveC Runtime Reference.好了,现在直接写怎么做了.1.在定义.........【阅读全文】