-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
double indicatorHeight = scrollView.height/scrollView.contentSize.height*scrollView.height;
self.indicatorView.frame = CGRectMake(WIDTH-Fit3XSizeW(5), CGRectGetMinY(self.textScrollView.frame)+scrollView.contentOffset.y/(scrollView.contentSize.height-scrollView.height)*(scrollView.height-indicatorHeight), Fit3XSizeW(5), indicatorHeight);
}
网友评论