Closed JerryXst closed 4 years ago
case UIControlContentHorizontalAlignmentRight: orignX = CGRectGetWidth(self.frame) - ((_indicatorViews.count - 1) * (_pageIndicatorSize.width + _pageIndicatorSpaing) - _pageIndicatorSize.width) - _contentInset.right;
这个(_indicatorViews.count - 1)是不是应该从_indicatorViews.count开始滚动?
(_indicatorViews.count - 1)
_indicatorViews.count
在TYPageControl.m文件的238行。
case UIControlContentHorizontalAlignmentRight: orignX = CGRectGetWidth(self.frame) - ((_indicatorViews.count - 1) * (_pageIndicatorSize.width + _pageIndicatorSpaing) - _pageIndicatorSize.width) - _contentInset.right;
这个
(_indicatorViews.count - 1)
是不是应该从_indicatorViews.count
开始滚动?