iPhone/iPad表格视图仅重新加载一行,而不是整个表格
而不是iPhone/iPad表格视图仅重新加载一行,而不是整个表格,iphone,ios,ipad,uitableview,reloaddata,Iphone,Ios,Ipad,Uitableview,Reloaddata,而不是 [table reloadData] 有没有办法告诉表只重新加载一行?我的疯狂是有原因的。是的,有: (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnnimation *)annimationStyle 在房间里。该方法称为reloadRowsAtIndexPaths:withRowAnimation:。所以你会做一些类似的事情: NSArr
[table reloadData]
有没有办法告诉表只重新加载一行?我的疯狂是有原因的。是的,有:
(void)reloadRowsAtIndexPaths:(NSArray *)indexPaths
withRowAnimation:(UITableViewRowAnnimation *)annimationStyle
在房间里。该方法称为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];