Problem about objc_exception_throw

本文记录了在使用UITableView的dequeueReusableCellWithIdentifier方法时遇到的一个异常问题。该问题表现为objc_exception_throw异常抛出,通过调试发现异常原因在于复用的单元格类变更后未正确更新IBOutlet连接。

Today, I encounter an issue when I use UITableView's dequeueReusableCellWithIdentifier, it always throw objc_exception_throw exception.

And from the breakpoint, I can't find any clue to solve the problem.

And finally, I remember the cell is copy pasted from old cell, and I change the class of the cell.

There are some outlet for the uilabel etc.

The problem is I didn't remove it from the old referencing outlets, and add another referencing outlet.

转载于:https://www.cnblogs.com/liwp_Stephen/p/4137309.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值