jjzjj

topIndexPath

全部标签

objective-c - 选择 RowAtIndexPath : animated: scrollPosition: - Row is "selected"

我正在使用以下代码滚动到tableView的顶部:NSIndexPath*topIndexPath=[NSIndexPathindexPathForRow:0inSection:0];[self.listTableViewselectRowAtIndexPath:topIndexPathanimated:NOscrollPosition:UITableViewScrollPositionMiddle];效果很好,但我想避免目标行被“选中”。见下图:关于运行此代码后如何“取消选择”该行的任何想法?或者更好的是,以一种不首先“选择”目标行的方式运行此代码? 最佳