本文共 733 字,大约阅读时间需要 2 分钟。
一、不可变字符串属性
@property (nonatomic, strong) NSString *strongedString;
@property (nonatomic, copy) NSString *copiedString;
当源不可变字符串改变时:
当源可变字符串改变时:
二、可变字符串属性
@property (nonatomic, strong) NSMutableString *strongedString;
@property (nonatomic, copy) NSMutableString *copiedString;
当源字符串为不可变字符串时:
当源字符串为可变字符串时:
可变字符串属性理解感觉不到位,待考究...
转载地址:http://hyhg.baihongyu.com/