ARC forbids explicit message send of'release 异常

ARC forbids explicit message send ofrelease 错误ARC forbids explicit message send ofreleaserele

ARC forbids explicit message send of'release 错误

ARC forbids explicit message send of'release'

'release' is unavailable: not available inautomatic reference counting mode

?

由于ARC是内存自动管理的,所以不需要手动释放内存了。这里编译器编译不通过,如果你必须要通过,那么可以对项目进行设置:

单击项目根目录---》找到"Build Settings" ---》找到Objective-C Automatic Reference Counting项,选择为“no”