獲取位于tableview頂部的section,取所有可見的Cell第一個(gè)則為最頂部的,然后根據(jù)cell獲取indexPath,
NSUIntegersectionNumber =
[tableViewindexPathForCell:_rightTableView.visibleCells.firstObject].section;
tableview滾動到指定的行:
[tableViewscrollToRowAtIndexPath:[NSIndexPathindexPathForRow:0inSection:indexPath.row]atScrollPosition:UITableViewScrollPositionTopanimated:YES];