ARC代码:

NSObject *p = [NSObject new];

 

编译完的MRC代码

NSObject *temp = [NSObject new];

p = [temp retain];

[temp release];

 

ARC代码:

__weak NSObject *p = [NSObject new];

 

编译完的MRC代码

NSObject *temp = [NSObject new];

p = temp;

[temp release];

posted on 2020-01-07 23:26  ximenchuixie  阅读(129)  评论(0)    收藏  举报