Multiple methods named 'status' found with mismatched result, parameter type or attributes

出现这个这个错误, 有可能是由于你直接通过一个数组的索引获取一个对象(或模型)然后直接调用这个对象(或模型)的某个方法

例如:

NSString *status = [self.models[indexPath.row] status];

应该改为:

RPModel *model = self.models[indexPath.row];

NSString *status = model.status;

这样就能消除这个错误啦...

posted @ 2016-09-24 16:57  Rinpe  阅读(2870)  评论(0编辑  收藏  举报