1
This commit is contained in:
@@ -50,7 +50,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
|||||||
self.categoryView.titleSelectedColor = [UIColor colorWithHex:0x1B1F1A];
|
self.categoryView.titleSelectedColor = [UIColor colorWithHex:0x1B1F1A];
|
||||||
self.categoryView.titleColor = [UIColor colorWithHex:0x9F9F9F];
|
self.categoryView.titleColor = [UIColor colorWithHex:0x9F9F9F];
|
||||||
self.categoryView.titleColorGradientEnabled = YES;
|
self.categoryView.titleColorGradientEnabled = YES;
|
||||||
self.categoryView.titleLabelZoomEnabled = YES;
|
// 不需要文字放大效果
|
||||||
|
self.categoryView.titleLabelZoomEnabled = NO;
|
||||||
self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO;
|
self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO;
|
||||||
// Unselected items need a rounded gray background like the screenshot.
|
// Unselected items need a rounded gray background like the screenshot.
|
||||||
// JXCategoryTitleView supports cell background colors via JXCategoryIndicatorView.
|
// JXCategoryTitleView supports cell background colors via JXCategoryIndicatorView.
|
||||||
@@ -62,6 +63,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
|||||||
self.categoryView.cellSpacing = 12; // spacing between items
|
self.categoryView.cellSpacing = 12; // spacing between items
|
||||||
self.categoryView.contentEdgeInsetLeft = 16;
|
self.categoryView.contentEdgeInsetLeft = 16;
|
||||||
self.categoryView.contentEdgeInsetRight = 16;
|
self.categoryView.contentEdgeInsetRight = 16;
|
||||||
|
self.categoryView.averageCellSpacingEnabled = NO;
|
||||||
|
|
||||||
JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
|
JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
|
||||||
backgroundView.indicatorHeight = 20;
|
backgroundView.indicatorHeight = 20;
|
||||||
@@ -74,6 +76,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
|||||||
_pagerView = [self preferredPagingView];
|
_pagerView = [self preferredPagingView];
|
||||||
self.pagerView.mainTableView.gestureDelegate = self;
|
self.pagerView.mainTableView.gestureDelegate = self;
|
||||||
[self.view addSubview:self.pagerView];
|
[self.view addSubview:self.pagerView];
|
||||||
|
self.pagerView.listContainerView.scrollView.scrollEnabled = false;
|
||||||
|
|
||||||
|
|
||||||
self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;
|
self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user