有没有什么方法能不能让tableview只响应滑动,不接受点击

2025-04-17 07:32:59
推荐回答(1个)
回答1:

[tableViewscrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionBottomanimated:YES];这个是选择哪一行的cell,让该行的cell滑到tableView的最底端NSIndexPath*indexPath=[NSIndexPathindexPathForItem:13inSection:0];[tableViewscrollToRowAtIndexPath:indexPathatScrollPosition:UITableViewScrollPositionBottomanimated:YES];这个是指定哪一行的cell,让该行cell滑到tableView的最底端!