'Treatment' 可能不会响应下面代码中的 '+findAllTreatments' 警告显示
_rootViewController.treatments = [Treatment findAllTreatments];
应该是什么原因。
最佳答案
在 Treatment.h(或声明 Treatment 类的 .h 文件)中声明 + (void)findAllTreatments;
。不要忘记它是类方法,而不是实例方法。
关于iphone - "May not respond to "警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8518732/