作者leondemon (狗狗)
看板MacDev
标题[问题] property/synthesize之後...
时间Tue Dec 22 23:00:37 2009
用property/synthesize一个物件变数A之後 (nonatomic, retain)
为什麽在method当中要对A进行操作时
在set的语法必须要用 self.A = something
而不能直接用 A = something
可是get的时候可以直接用A (用self.A也可以)
Why?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.77.52.127