malloc: *** mmap(size=1431658496) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
*** Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableViewRowData.m:377

主要问题为,在tableview的方法中
numberOfRowsInSection:此方法根据数组返回对应的行数。在此一行显示多个自定义cell时候,需要判断数组是否为0,在if中加入[Array count]!=0即可

相关文章:

  • 2021-06-29
  • 2022-12-23
  • 2021-10-04
  • 2022-01-31
  • 2022-12-23
  • 2021-12-24
  • 2021-07-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案