我正在使用以下代码滚动到 tableView 的顶部:
NSIndexPath *topIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.listTableView selectRowAtIndexPath:topIndexPath animated:NO scrollPosition:UITableViewScrollPositionMiddle];
它工作得很好,但我想避免目标行被“选中”。见下图:
关于如何在此代码运行后“取消选择”行的任何想法?或者更好的是,以不首先“选择”目标行的方式运行此代码?