码迷,mamicode.com
首页 > 其他好文 > 详细

动态删除或者插入xib中静态TableView的Cell

时间:2015-06-04 15:54:56      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:uitableview

图解:

技术分享

技术分享

插入方法:

[_tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];

很容易出错:numberOfRowsInSection 没有减1 导致出错:

*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-2372/UITableView.m:1070

libc++abi.dylib: handler threw exception

动态删除或者插入xib中静态TableView的Cell

标签:uitableview

原文地址:http://blog.csdn.net/etmanwenhan/article/details/46360275

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!