1
This commit is contained in:
@@ -49,7 +49,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
self.categoryView.delegate = self;
|
||||
self.categoryView.titleSelectedColor = [UIColor colorWithHex:0x1B1F1A];
|
||||
self.categoryView.titleColor = [UIColor colorWithHex:0x9F9F9F];
|
||||
self.categoryView.titleColorGradientEnabled = YES;
|
||||
// 左右滑动时不要文字渐变色
|
||||
self.categoryView.titleColorGradientEnabled = NO;
|
||||
// 不需要文字放大效果
|
||||
self.categoryView.titleLabelZoomEnabled = NO;
|
||||
self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO;
|
||||
@@ -71,12 +72,15 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
backgroundView.indicatorColor = [UIColor whiteColor]; // keep selected fill white
|
||||
backgroundView.layer.borderColor = [UIColor colorWithHex:0x02BEAC].CGColor;
|
||||
backgroundView.layer.borderWidth = 1;
|
||||
// 点击切换时不需要左右滚动动画,直接跳转到目标位置
|
||||
backgroundView.scrollEnabled = NO;
|
||||
backgroundView.scrollAnimationDuration = 0;
|
||||
self.categoryView.indicators = @[backgroundView];
|
||||
|
||||
_pagerView = [self preferredPagingView];
|
||||
self.pagerView.mainTableView.gestureDelegate = self;
|
||||
[self.view addSubview:self.pagerView];
|
||||
self.pagerView.listContainerView.scrollView.scrollEnabled = false;
|
||||
// self.pagerView.listContainerView.scrollView.scrollEnabled = false;
|
||||
|
||||
|
||||
self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;
|
||||
|
||||
Reference in New Issue
Block a user