gpt4 book ai didi

ios - 圆弧 : "Pointer to non-const type ' id' with no explicit ownership"

转载 作者:IT王子 更新时间:2023-10-29 08:17:29 26 4
gpt4 key购买 nike

我正在升级一个 iOS 4 项目以将其与带有 sdk5 的 ARC 一起使用。所以我想使用自动重构方法将代码转换为使用 ARC。不幸的是它不起作用。我收到很多错误..

for(id* child in childObjectArray){
[child removeParentGroupReferences];
}

这给了我以下错误输出:

Pointer to non-const type 'id' with no explicit ownership

有什么帮助吗?我需要改变什么?感谢您的帮助..

最佳答案

id* 更改为 idid 已定义为对象指针。

关于ios - 圆弧 : "Pointer to non-const type ' id' with no explicit ownership",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9263713/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com