NSInternalInconsistencyException',原因:'无法使具有标识符 MealTableViewCell 的单元格出队 - 必须注册一个笔尖

NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier MealTableViewCell - must register a nib

我正在为 Swift 编写 apple 指南,我遇到了一条错误消息:

 "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".

我该如何解决?

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