我正在使用一个 UISegmentedControl
来改变 UITableViewCell
的内容。段更改后,我需要重新加载单元格以更新它的高度。我通过调用来做到这一点:
[self.tableView reloadRowsAtIndexPaths:@[self.segmentIndexPath] withRowAnimation:UITableViewRowAnimationNone];
但是,这会使 UITableView
滚动到顶部。在没有表格滚动的情况下执行此操作的最佳方法是什么?
最佳答案
尝试使用[self.tableView visibleCells]
然后找到这个单元格并改变
关于ios - 在没有 UITableView 滚动的情况下重新加载 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32953199/