tableview主动选取某行

2016-08-06  本文已影响18人  梦在旅途
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:1];
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionBottom];
[self tableView:self.tableView didSelectRowAtIndexPath:indexPath];
上一篇 下一篇

猜你喜欢

热点阅读