【基本解决】swift中tableView.endUpdates再次出现NSInternalInconsistencyException Invalid update: invalid number of rows in section 0
crifan 10年前 (2016-02-25) 4797浏览
代码: func addGroupTopicItem(groupTopicItem:GroupItem) { if !self.existedGroupTopic(groupTopicItem.id) { ...

![[已解决]Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert row 16 into section 0, but there are only 0 rows in section 0 after the update'](https://www.crifan.com/files/pic/uploads/2017/07/ec5a8bd771985713737ef4fe9a42f3c2.png)
![[已解决]NSInternalInconsistencyException', reason: 'UIDocumentInteractionController: invalid scheme (null). Only the file scheme is supported](https://www.crifan.com/files/pic/uploads/2017/07/335cb2caf61e99afd1f7229f42eff6e0-220x150.png)