- 原子性---nonatomic特质
- 如果不写默认情况为atomic(系统会自动加上同步锁,影响性能)
- 在iOS开发中尽量指定为nonatomic,这样有助于提高程序的性能
- 读/写权限---readwrite(读写)、readooly (只读)
- 内存管理语义---assign、strong、 weak、unsafe_unretained、copy
- 方法名---getter=、setter=
@property (nonatomic, getter=isOn) BOOL on;
- 不常用的:nonnull,null_resettable,nullable
@property后面可以有哪些修饰符?
原文:http://www.cnblogs.com/huangzs/p/7571955.html