天天看點

unable to dequeue a cell with identifier - must register a nib or a class for the identifier...問題

之前也曾遇見這個問題(或者類似問題),但是忘了是怎麼産生的了。

這次的問題出現在以下代碼

TopPageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID forIndexPath:indexPath ];
           

應該改成