ios开发 计算cell滑动到第几个

来源:互联网 发布:vuze for mac 编辑:程序博客网 时间:2024/06/07 04:13

NSArray<NSIndexPath *> * cellArr = [_tableViewindexPathsForVisibleRows];

    NSIndexPath * currentIndexPath = cellArr[cellArr.count -1];

    _currentCountView.currentCountLabel.text = [NSStringstringWithFormat:@"%ld",currentIndexPath.section +1];

原创粉丝点击