简体   繁体   中英

Move the tableview according to indexPath.row

I have a horizontal tableview and i would like to move this tableview and position the cell according to the indexPath.row that i give in the middle of my view.

I'm trying to find the method but cannot find it :(

Could you help me.

Thanks !

我认为您正在寻找:

[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM