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

出现这个这个错误, 有多是因为你直接经过一个数组的索引获取一个对象(或模型)而后直接调用这个对象(或模型)的某个方法数组

例如:对象

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

应该改成:model

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

NSString *status = model.status;错误

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

相关文章
相关标签/搜索