NSString的属性修饰使用copy和strong的区别

一、不可变字符串属性、 @property (nonatomic,strong)NSString *strongedString; @property (nonatomic,copy)NSString  *copyedString;       1、当源不可变字符串改变时      使用srong修饰的属性由于取得的还是源不可变字符串地址、其值会跟随源字符串改变而改变。      使用copy修饰
相关文章
相关标签/搜索