转载自:http://code4app.com/snippets/one/%E5%88%B7%E6%96%B0%E6%9F%90%E8%A1%8Ccell%E7%9A%84%E6%96%B9%E6%B3%95/53326c5c933bf0ba0e8b47ff#s0
有时候只需要刷新某行的cell的数据,完全没必要调用[tableView reloadData]刷新整个列表的数据,调用以下方法即可。。
1
2
3
|
NSIndexPath
*indexPath_
1
=[
NSIndexPath
indexPathForRow
:
1
inSection
:
0
];
NSArray
*indexArray=[
NSArray
arrayWithObject
:indexPath_
1
];
[myTableView
reloadRowsAtIndexPaths
:indexArray
withRowAnimation
:UITableViewRowAnimationAutomatic];
|