我正在使用 UISearchController
,在过滤内容数组后尝试重新加载数据后出现此错误。如果我将 tableView 的 tableHeaderView
以外的任何其他 View 设置为 UISearchController
的 searchBar,则不会发生这种情况。如果我使用任何其他 View 来保存搜索栏,一切正常。有没有人遇到过这个错误,如果有,解决方案是什么。
Assertion failure in -[UITableView _cellReuseMapForType:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.29.300.16/UITableView.m:3962 2015-11-15 15:43:34.166 AirMediaCenterTV[23894:1052893] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to access view reuse map for unknown view type 4'
最佳答案
我在 tvOS 上看到过类似的崩溃问题,但我似乎无法找到解决方法。我没有使用 UISearchController
。我已经从 UITableView
中删除了所有 registerClass:
调用,但似乎没有用。
关于objective-c - 使用 tableHeader TVOS 重新加载 tableView 时断言失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33721626/