獲取位于tableview頂部的section嘀倒,取所有可見的Cell第一個則為最頂部的,然后根據(jù)cell獲取indexPath,
NSUInteger?sectionNumber =?
[tableView?indexPathForCell:_rightTableView.visibleCells.firstObject].section;
tableview滾動到指定的行:
[tableView?scrollToRowAtIndexPath:[NSIndexPath?indexPathForRow:0?inSection:indexPath.row]?atScrollPosition:UITableViewScrollPositionTop?animated:YES];