【发布时间】:2015-04-20 16:37:31
【问题描述】:
我收到错误 Thread1: signal SIGABRT 在下面的行中,我已经尝试过:
- 产品>清洁、重启计算机
- 检查与情节提要的所有连接
- 检查是否有连接丢失
- 标识符在属性检查器中设置为单元格
另外查看此论坛中的许多帖子。
在这一切之后,我删除了与情节提要的所有连接并再次连接,但仍然出现相同的错误:(
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell2 = tableView.dequeueReusableCellWithIdentifier("cell2", forIndexPath: indexPath) as! DefinitionTableViewCell
在控制台中:
Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit/UIKit-3347.44/UITableView.m:6245
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier cell2 - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
任何帮助都非常受欢迎 Tks :)
【问题讨论】: