我遇到了 UITableView 的一段代码,单击单元格并重新加载,但数据源到底是什么?这个我不是很清楚。
[xTable reloadRowsAtIndexPaths:[NSArray arrayWithObjects:[NSIndexPath indexPathForRow:button.tag inSection:0],nil] withRowAnimation:UITableViewRowAnimationFade];
最佳答案
它运行以下“tableview cellForRowAtIndexPath”方法并加载指定单元格的更新信息。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
希望对您有所帮助。
关于iOS UITableView 重新加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10967025/