NSInternalInconsistencyException',原因:'无法使用标识符MealTableViewCell对单元格出列 - 必须注册一个nib

时间:2016-07-11 01:53:17

标签: swift nib

我正在为 Swift 做苹果指南,我遇到了一个错误说:

 "NSInternalInconsistencyException', reason: 'unable to dequeue a
  cell with identifier MealTableViewCell - must register a nib or 
  a class for the identifier or connect a prototype cell in a storyboard".

我该如何解决?

1 个答案:

答案 0 :(得分:0)

单击您的单元格并转到属性检查器,看看您是否已为此单元格提供了重用标识MealTableViewCell

enter image description here