ARC forbids explicit message send of'release 错误

来源:互联网 发布:mac上的拼图app 编辑:程序博客网 时间:2024/05/11 19:11
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”

0 0
原创粉丝点击