請問這是什么原因呢(IOS 初學者提問)?
? ?您好,按照您的視頻編寫代碼。這里報錯,請問這是什么原因呢?
???AVObject?*item?=?self.dataArray[indexPath.row];??? ???HomeTableViewCell??*cell?=?[tableView?dequeueReusableCellWithIdentifier:@"cell"]; ???cell.textLabel.text?=?[item?objectForKey:@"content"]; ???cell.currItem?=item;//這里報錯
? ? ? ??
錯誤信息: -[UITableViewCell?setCurrItem:]:?unrecognized?selector?sent?to?instance?0x7fa2d0049a002018-06-03?00:56:47.535675+0800?LeancloudDemo[1665:60725]?***?Terminating?app?due?to?uncaught?exception?'NSInvalidArgumentException',?reason:?'-[UITableViewCell?setCurrItem:]:?unrecognized?selector?sent?to?instance?0x7fa2d0049a00'***?First?throw?call?stack:
2018-06-15
你的cell里面是否沒有設置?currItem 變量
2018-06-04
具體報什么錯?能否截圖,或者把報錯內容發出來