NSInternalInconsistencyException

2020-09-05  本文已影响0人  whereandhere

6 崩溃

x未崩溃

Thread 1: Exception: "Invalid update: invalid number of items in section 1. The number of items contained in an existing section after the update (1) must be equal to the number of items contained in that section before the update (0), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out)."

崩溃原因:

    //NSInternalInconsistencyException 崩溃

    //[CollectionView] reloadSections:[NSIndexSet indexSetWithIndex:0]];

暂时解决:

    [CollectionView reloadData];
上一篇下一篇

猜你喜欢

热点阅读