用property声明属性时,strong,copy,weak的一般用法
2014-11-06 00:02
405 查看
//一般情况下,在声明字符串对象的时候使用 copy //UI对象使用weak //其他对象使用strong @property(nonatomic,copy)NSString *name; @property(nonatomic,weak)UIImage *image; @property(nonatomic,strong)NSArray *array;
相关文章推荐
- 关于声明属性Strong还是Copy的用法
- ARC声明属性关键字详解(strong,weak,unsafe_unretained,copy)
- iOS中 property中的属性strong 、weak、copy 、assign 、retain 、unsafe_unretained 与autoreleasing区别和作用详解
- ARC声明属性关键字详解(strong,weak,unsafe_unretained,copy)
- property属性的weak,strong,copy,assign
- property中的属性strong 、weak、copy 、assign 、retain 、unsafe_unretained 与autoreleasing区别和作用详解
- 【整理】Object-C中的属性(Property)的Setter:assign,copy,retain,weak,strong之间的区别和联系
- objective-c中property 的属性strong,weak, retain, copy
- [iOS基础控件 - 6.12.3] @property属性 strong weak copy
- property中的strong 、weak、copy 、assign 、retain 、unsafe_unretained 与autoreleasing区别和作用详解
- property中的strong 、weak、copy 、assign 、retain 、unsafe_unretained 与autoreleasing区别和作用详解
- strong、weak、copy、assign 在命名属性时候怎么用
- 关于strong、copy、weak、assign的常规用法
- property 描述 之copy assign retain strong weak
- assign,retain,copy,weak,strong,readonly,nonatomic ,atomic 8个属性的特征
- 关于声明控件用weak和strong的问题&NSString用copy好还是strong
- iOS strong .copy .retain .weak .assign的区别,以及各自的用法
- copy, weak, strong, assign 的用法
- 关于property的各个修饰符(strong,weak,retain,assign,copy等等)
- iOS开发之详解@property属性(copy,strong,weak,nonatomic,readwrite等)