简体   繁体   English

根据indexPath.row移动tableview

[英]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. 我有一个水平的表格视图,我想移动该表格视图并根据我在视图中间给出的indexPath.row定位单元格。

I'm trying to find the method but cannot find it :( 我正在尝试找到方法,但找不到它:(

Could you help me. 你可以帮帮我吗。

Thanks ! 谢谢 !

我认为您正在寻找:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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