![](/img/trans.png)
[英]Scrolling to bottom of UITableView (UITableView is in a UITableViewCell)
[英]Reload UITableViewCell without UITableView scrolling
我正在使用UISegmentedControl
來更改UITableViewCell
的內容。 在段更改后,我需要重新加載單元格以更新它的高度。 我這樣做是通過調用:
[self.tableView reloadRowsAtIndexPaths:@[self.segmentIndexPath] withRowAnimation:UITableViewRowAnimationNone];
但是,這會使UITableView
滾動到頂部。 沒有表滾動的最佳方法是什么?
嘗試使用[self.tableView visibleCells]
,然后找到此單元格並進行更改
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.