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;

這樣就能消除這個錯誤啦...


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM