iOS开发中判断UITableView滑动到哪个分区(section)

- (void)scrollViewDidScroll:(UIScrollView*)scrollView{

        if([scrollViewisEqual:self.l_rightTab]) {

        CGPoint d = CGPointMake(scrollView.contentOffset.x, scrollView.contentOffset.y);//;

        NSIndexPath *indexPath = [self.l_rightTab indexPathForRowAtPoint:d];

        NSLog(@"%ld",indexPath.section);

        }

}

你可能感兴趣的:(iOS开发中判断UITableView滑动到哪个分区(section))