|
@@ -34,7 +34,7 @@
|
|
|
}];
|
|
|
[self.containerView addSubview:self.pageControl];
|
|
|
[self.pageControl mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.right.mas_equalTo(self);
|
|
|
+ make.left.right.mas_equalTo(self.containerView);
|
|
|
make.height.mas_equalTo(12);
|
|
|
make.bottom.mas_equalTo(self.containerView.mas_bottom).offset(-24);
|
|
|
}];
|
|
@@ -99,7 +99,6 @@
|
|
|
if (!_baseScroll) {
|
|
|
_baseScroll = [[TYCyclePagerView alloc] init];
|
|
|
_baseScroll.backgroundColor = [UIColor clearColor];
|
|
|
-// _baseScroll.frame = CGRectMake(0, 0, 300, 332);
|
|
|
_baseScroll.isInfiniteLoop = NO;
|
|
|
_baseScroll.reloadDataNeedResetIndex = YES;
|
|
|
_baseScroll.dataSource = self;
|
|
@@ -122,9 +121,9 @@
|
|
|
- (TYPageControl *)pageControl {
|
|
|
if (!_pageControl) {
|
|
|
_pageControl = [[TYPageControl alloc] init];
|
|
|
- _pageControl.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
|
|
|
+ _pageControl.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
|
|
|
_pageControl.pageIndicatorSpaing = 6.0f;
|
|
|
-// _pageControl.frame = CGRectMake(0, 332 - 20, 300, 12);
|
|
|
+ _pageControl.numberOfPages = self.bannerArray.count;
|
|
|
_pageControl.currentPageIndicatorTintColor = THEMECOLOR;
|
|
|
_pageControl.pageIndicatorTintColor = HexRGB(0xDFDFDF);
|
|
|
_pageControl.pageIndicatorSize = CGSizeMake(6, 6);
|