1.堆和栈
- 堆:存放OC对象,先进先出。(吃了拉)
- 栈:存放非OC对象,先进后出。(吃了吐)
2.@property的本质:
@property = ivar + getter + setter
,实例变量+get方法+set方法。也就是说使用@property 系统会自动生成setter和getter方法。
http://www.cocoachina.com/ios/20160303/15498.html
1.堆和栈
2.@property的本质:
@property = ivar + getter + setter
,实例变量+get方法+set方法。也就是说使用@property 系统会自动生成setter和getter方法。
http://www.cocoachina.com/ios/20160303/15498.html