阅读背景:

如果我使用@property,我还需要声明实例变量吗?

来源:互联网 

In Objective C you can now use @property and @synthesize to auto generate get and set methods. My question is: Do I still need to declare the property in the interface? My program compiles and runs fine without it. But most books and other examples still have it. Why?In Objective C you can now use @property and @s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: