我正在从Xcode发出警告。以下是代码未找到实例方法(返回类型默认为id)
DeviceList *dList = (DeviceList*)[[User thisUser] devices];
[dList getListId];
警告指出未找到实例方法-getListId。然而该方法我的源代码
- (NSString*) getListId
{
T
if (... != nil)
{
return ...;
}
else
{
return @"";
}
}
存在我想不出有什么问题,当我打电话的方法。
这解决了它对我来说。我已经在头文件中完成了@class DeviceList;而在实现中没有执行'#import“DeviceList.h”'。 –