如何在不重新加载完整表的情况下更新UITableVIewCell [英] How to update a UITableVIewCell without reloading full table
本文介绍了如何在不重新加载完整表的情况下更新UITableVIewCell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个序列中我只更新列表数据中的特定对象(NSMUtableArray),一旦更新了它的值,为了进行GUI更新,我重新加载了整个表格下面......
In a sequence I am updating only a particular object in my list data(NSMUtableArray), once updated its value, To make the GUI update, I was reloaded the full table like below...
[table reloadData];
它工作得很好但是在效率方面,当我滚动时,它有点悬挂,是否有没有重新加载全表只能更新特定单元格的任何方法吗?
It worked fine, However in efficiency point, it is hanging little bit while I am scrolling, Is there any way to update only a particular cell without reload full table?
谢谢。
推荐答案
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
使用此
这篇关于如何在不重新加载完整表的情况下更新UITableVIewCell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文