美文网首页
Attempted to call -cellForRowAtI

Attempted to call -cellForRowAtI

作者: Aliv丶Zz | 来源:发表于2020-11-03 09:46 被阅读0次

1 场景:

  • 项目中需要将excel表格绘制到一个cell中进行展示,使用到一个表格第三方库实现后,运行过程中提示:

Attempted to access the table view's visibleCells while they were in the process of being updated, which is not allowed. Make a symbolic breakpoint at UITableViewAlertForVisibleCellsAccessDuringUpdate to catch this in the debugger and see what caused this to occur. Perhaps you are trying to ask the table view for the visible cells from inside a table view callback about a specific row?

大概意思意思就是visibleCells在显示的过程中不能去访问,让你增加一个 UITableViewAlertForVisibleCellsAccessDuringUpdate断点,调试下看哪里的问题。

2 问题处理

  • 步骤1 : 添加 symbolic breakpoint...
  • 步骤2 :设置UITableViewAlertForVisibleCellsAccessDuringUpdate断点
设置断点
  • 步骤3 :重新运行项目


    运行结果

接下来就根据你实际情况,进行处理即可

相关文章

网友评论

      本文标题:Attempted to call -cellForRowAtI

      本文链接:https://www.haomeiwen.com/subject/yfhbvktx.html