我无法解决“为标识符(BNRItemCell)注册的无效笔尖"问题 [英] I can't solve "invalid nib registered for identifier (BNRItemCell)"

查看:24
本文介绍了我无法解决“为标识符(BNRItemCell)注册的无效笔尖"问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在阅读 Big Nerd Ranch iOS 书籍,我正在尝试解决这个问题的第 2 天,我快疯了 - 谁能帮忙?

Going through the Big Nerd Ranch iOS book, and I'm on day 2 of trying to solve this and I'm going crazy - can anyone help?

我收到以下错误消息:

2014-06-20 11:37:18.764 Homepwner[10388:60b] *** 由于未捕获的异常NSInternalInconsistencyException"而终止应用程序,原因:为标识符注册的无效笔尖 (BNRItemCell) - 笔尖必须恰好包含一个顶部level 对象必须是 UITableViewCell 实例'

2014-06-20 11:37:18.764 Homepwner[10388:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'invalid nib registered for identifier (BNRItemCell) - nib must contain exactly one top level object which must be a UITableViewCell instance'

我已将 BNRItemCell.xib 连接到相应的类.在断点所在的第 57 行之后事情失败了:

I've hooked up the BNRItemCell.xib to the corresponding class. Things fail after line 57 where the breakpoint is:

========================================================

=======================================================

========================================================

=======================================================

我知道这将是一件非常基础的事情,我会踢自己.

I know that it's gonna be something so basic that I'll kick myself.

任何帮助将不胜感激谢谢!

Any help will be appreciated thanks!

推荐答案

观察 IB 左侧的 TreeView,您在 UITableViewCell 下方有一个 UIView(第二个顶级元素!).删除它,你应该没问题!

Observing the TreeView on the left of the IB you have a UIView ( second top level element! ) below the UITableViewCell. Delete it and you should be fine!

这篇关于我无法解决“为标识符(BNRItemCell)注册的无效笔尖"问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆