forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.94k stars 2.01k forks source link

在没有使用的地方,tableview刷新时闪退 #293

Open ZJN-Bc opened 7 years ago

ZJN-Bc commented 7 years ago

崩溃点 UITableView+FDIndexPathHeightCache.h的203行

*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3600.6.22/UITableView.m:1610

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 4. The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the update (0), plus or minus the number of rows inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).' First throw call stack: (0x183db11b8 0x1827e855c 0x183db108c 0x18486902c 0x189e4941c 0x189e45b60 0x100698cec 0x1008372c8 0x100631ea8 0x100631890 0x1024e1258 0x1024e1218 0x1024e6280 0x183d5e810 0x183d5c3fc 0x183c8a2b8 0x18573e198 0x189cd17fc 0x189ccc534 0x1007f7550 0x182c6d5b8) libc++abi.dylib: terminating with uncaught exception of type NSException

afantree commented 7 years ago

这个是不是数据源没有统一?