首页 > 其他 > 详细

deleteRow

时间:2016-06-04 17:36:39      阅读:99      评论:0      收藏:0      [点我收藏+]

如果是删除某一行的话,直接delete就可以,行数要在删除之前剪掉,否则会崩溃。

 

但是,如果section要减一的话,是不能删掉section的

Terminating app due to uncaught exception ‘NSInternalInconsistencyException‘,
reason: ‘Invalid update: invalid number of sections.
The number of sections contained in the table view after the update (1) must be equal to the number of sections contained in
the table view before the update (2), plus or minus the number of sections inserted or deleted (0 inserted, 0 deleted).‘

  意思就是section的个数不能有增有减。

deleteRow

原文:http://www.cnblogs.com/tanglimei/p/5559009.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!