- tableView 获取滑动中当前页的页码
只需要在scrollViewDidEndDragging这个方法中监听
currentPageIndex = mTableView.indexPathsForVisibleRows!.last!.row
- 如果cell中重用出现 错乱,则可以重置方法中重置
override func prepareForReuse() {
//重置关注按钮的所有动画
if animator1 != nil{
animator1.stop()
btnAddFllow.transform = .identity
btnAddFllow.layer.removeAllAnimations()
btnAddFllow.setImage(UIImage(named: "icon_personal_add_little"), for: .normal)
}