NSString* test = [NSString stringWithFormat:@"test1"];
NSString __unsafe_unretained *c = test;
NSString __weak *d = test;
test = @“test2”;
NSLog(@"%@",c);
NSLog(@"%@",d);
/////////////////////////////////////////// 不应该是空值么?
2014-08-28 08:14:43.583 TestOnline[191:60b] test1
2014-08-28 08:14:44.665 TestOnline[191:60b] test1
NSString __unsafe_unretained *c = test;
NSString __weak *d = test;
test = @“test2”;
NSLog(@"%@",c);
NSLog(@"%@",d);
/////////////////////////////////////////// 不应该是空值么?
2014-08-28 08:14:43.583 TestOnline[191:60b] test1
2014-08-28 08:14:44.665 TestOnline[191:60b] test1