摘要: A class extension allows you to declare a method that is private to the classsee “Extensions” in The Objective-C Programming Language). 阅读全文
posted @ 2012-04-26 15:39 进劲 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Verify Object Capabilities at RuntimeIntrospection, a powerful and useful feature of Objective-C and the NSObject class, enables you to learn certain things about objects at runtime. You can thus avoid mistakes in your code such as sending a message to an object that doesn’t recognize it or assuming 阅读全文
posted @ 2012-04-26 11:07 进劲 阅读(196) 评论(0) 推荐(0) 编辑