【发布时间】:2012-01-10 19:05:18
【问题描述】:
而不是一个
[table reloadData]
有没有办法告诉表格只重新加载一行?我的疯狂是有原因的。
【问题讨论】:
标签: iphone ios ipad uitableview reloaddata
而不是一个
[table reloadData]
有没有办法告诉表格只重新加载一行?我的疯狂是有原因的。
【问题讨论】:
标签: iphone ios ipad uitableview reloaddata
它在docs 中。该方法称为reloadRowsAtIndexPaths:withRowAnimation:。所以你会做这样的事情:
NSArray *indexPaths = [NSArray arrayWithObjects:
[NSIndexPath indexPathForRow:5 inSection:2],
// Add some more index paths if you want here
nil];
[tableView reloadRowsAtIndexPaths:indexPaths withRowAnimation: UITableViewRowAnimationFade];
【讨论】:
是的,有:
(void)reloadRowsAtIndexPaths:(NSArray *)indexPaths
withRowAnimation:(UITableViewRowAnnimation *)annimationStyle
【讨论】: