NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:1];
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionBottom];
[self tableView:self.tableView didSelectRowAtIndexPath:indexPath];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:1];
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionBottom];
[self tableView:self.tableView didSelectRowAtIndexPath:indexPath];
本文标题:tableview主动选取某行
本文链接:https://www.haomeiwen.com/subject/bxvksttx.html
网友评论