gpt4 book ai didi

iphone - "May not respond to "警告

转载 作者:行者123 更新时间:2023-11-28 19:21:35 25 4
gpt4 key购买 nike

'Treatment' 可能不会响应下面代码中的 '+findAllTreatments' 警告显示

_rootViewController.treatments = [Treatment findAllTreatments];

应该是什么原因。

最佳答案

在 Treatment.h(或声明 Treatment 类的 .h 文件)中声明 + (void)findAllTreatments;。不要忘记它是类方法,而不是实例方法。

关于iphone - "May not respond to "警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8518732/

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