1、看如下代码,会发生什么结果?
@interface ViewController ()
@property (nonatomic, copy) NSMutableString *mName;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.mName = @"a";
NSLog(@"mName的地址:%p", self.mName);
NSLog(@"mName的地址:%p", [self.mName copy]);
NSLog(@"mName的地址:%p", [self.mName mutableCopy]);
}
@end