2012年8月5日

摘要: nil Nil NULL NSNull nil: A null pointer to an Objective-C object. ( #define nil ((id)0) ) nil 是一个对象值。 Nil: A null pointer to an Objective-C class. NUL 阅读全文
posted @ 2012-08-05 23:36 Yang.XQ 阅读(318) 评论(0) 推荐(0)
摘要: 声明property的语法为:@property(属性 [, 属性2, ...]) 类型名称;属性分为3类1.读写属性(Writability)包含:readwrite / readonly2.setter语义(Setter Semantics)包含:assign / retain / copy3.原子性(Atomicity)包含:nonatomic下面具体说明各个属性的含义:readwrite / readonly:决定是否生成set访问器,readwrite是默认属性,生成getter和setter方法;readonly只生成getter方法,不生成setter方法。readonly关键字 阅读全文
posted @ 2012-08-05 23:33 Yang.XQ 阅读(215) 评论(0) 推荐(0)

导航