From 705b0f374ee1d0df8534ae628839d192e89dcdcb Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Sun, 9 Nov 2025 14:44:31 +0800 Subject: [PATCH] 1 --- keyBoard/Class/Shop/VC/KBShopVC.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/keyBoard/Class/Shop/VC/KBShopVC.m b/keyBoard/Class/Shop/VC/KBShopVC.m index 0ee9226..76e925a 100644 --- a/keyBoard/Class/Shop/VC/KBShopVC.m +++ b/keyBoard/Class/Shop/VC/KBShopVC.m @@ -50,7 +50,8 @@ static const CGFloat JXheightForHeaderInSection = 50; self.categoryView.titleSelectedColor = [UIColor colorWithHex:0x1B1F1A]; self.categoryView.titleColor = [UIColor colorWithHex:0x9F9F9F]; self.categoryView.titleColorGradientEnabled = YES; - self.categoryView.titleLabelZoomEnabled = YES; + // 不需要文字放大效果 + self.categoryView.titleLabelZoomEnabled = NO; self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO; // Unselected items need a rounded gray background like the screenshot. // 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.contentEdgeInsetLeft = 16; self.categoryView.contentEdgeInsetRight = 16; + self.categoryView.averageCellSpacingEnabled = NO; JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init]; backgroundView.indicatorHeight = 20; @@ -74,6 +76,8 @@ static const CGFloat JXheightForHeaderInSection = 50; _pagerView = [self preferredPagingView]; self.pagerView.mainTableView.gestureDelegate = self; [self.view addSubview:self.pagerView]; + self.pagerView.listContainerView.scrollView.scrollEnabled = false; + self.categoryView.listContainer = (id)self.pagerView.listContainerView;