首页 > 其他 > 详细

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

时间:2016-09-24 17:25:02      阅读:340      评论:0      收藏:0      [点我收藏+]

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

例如:

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

应该改为:

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

NSString *status = model.status;

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

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

原文:http://www.cnblogs.com/Rinpe/p/5903581.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!