1、看如下代码,会发生什么结果?

  1. @interface ViewController ()
  2. @property (nonatomic, copy) NSMutableString *mName;
  3. @end
  4. @implementation ViewController
  5. - (void)viewDidLoad {
  6. [super viewDidLoad];
  7. self.mName = @"a";
  8. NSLog(@"mName的地址:%p", self.mName);
  9. NSLog(@"mName的地址:%p", [self.mName copy]);
  10. NSLog(@"mName的地址:%p", [self.mName mutableCopy]);
  11. }
  12. @end