iOS tableview 设置默认选中行
2019-08-10 本文已影响0人
iOS门三闫
//tableview设置默认行应放在reloaddata后
[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]animated:YES scrollPosition:UITableViewScrollPositionNone];
//tableview设置默认行应放在reloaddata后
[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]animated:YES scrollPosition:UITableViewScrollPositionNone];