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

moveRowAtIndexPath beginupdates 不更新

时间:2015-04-01 21:55:58      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:ios   moverowatindexpath   beginupdates   


beginUpdatesendUpdates 

delete  和insert  这两个 需要写在这个代码块里,系统会自动帮忙实现cell上的控件的更新



- (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath 

系统API说 此方法也要写在里面, 但是发现写不写在里面, 发现都不会走cellforRow的方法,不会去刷新界面.

经过多次调试 发现其实不写也可以实现移动的.,并没有什么影响,唯一要解决的还是cell上的控件更新问题

这个就需要自己实现了

cellForRowAtIndexPath得到  cell ,  再去调用刷新界面的方法


moveRowAtIndexPath beginupdates 不更新

标签:ios   moverowatindexpath   beginupdates   

原文地址:http://blog.csdn.net/qq871531334/article/details/44813083

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