Must explicitly describe intended ownership of an object array
parameter”,等异常信息,原来是使用了ARC的缘故,由于不懂ARC是什么,导致检查了几遍代码还是编译器报错,后来查了很久发现是上面所述的原因,处理办法就是将设置项目 Automatic Reference Counting 变为No,因为你默认使用ARC。
时间: 2024-09-20 07:50:03
Must explicitly describe intended ownership of an object array
parameter”,等异常信息,原来是使用了ARC的缘故,由于不懂ARC是什么,导致检查了几遍代码还是编译器报错,后来查了很久发现是上面所述的原因,处理办法就是将设置项目 Automatic Reference Counting 变为No,因为你默认使用ARC。