【源码】tableViewcell页码

如何获取uitableview中最上面的可见cell的索引

如何获得UITableViewCell 在屏幕中的位置

如何获取当前屏幕上的cell是第几个cell

如何获取cell位置

如何在tableView上显示页码

-(void)scrollViewDidScroll:(UIScrollView *)scrollView

{

    NSIndexPath *path =  [_tableView indexPathForRowAtPoint:CGPointMake(scrollView.contentOffset.x, scrollView.contentOffset.y)];

    label.text = [NSString stringWithFormat:@"%li / 31",(long)path.row+1];

}

原文地址:https://www.cnblogs.com/wangbinios/p/8094273.html