摘要: Object-C 也提供了类似Java的反射机制。通过以下三种方式与运行环境交互:1、直接通过Object-C源代码2、通过NSObject中定义的方法:isKindOfClassisMemberOfClassresponseToSelector:判断该实例是否调用指定方法3、直接调用运行时函数进行... 阅读全文
posted @ 2014-12-02 16:46 shujucn 阅读(129) 评论(0) 推荐(0)
摘要: -copyWithZone:Returns a new instance that’s a copy of the receiver. (required)-mutableCopyReturns the object returned by mutableCopyWithZone: where th... 阅读全文
posted @ 2014-12-02 16:42 shujucn 阅读(187) 评论(0) 推荐(0)