This commit is contained in:
2025-11-09 17:07:43 +08:00
parent 2c4a4329ff
commit dc9ee10023
2 changed files with 9 additions and 2 deletions

View File

@@ -36,6 +36,11 @@
self.myCategoryView.titleColor = [UIColor colorWithHex:0x1B1F1A];
self.myCategoryView.titleSelectedColor = [UIColor whiteColor];
self.myCategoryView.titleFont = [UIFont systemFontOfSize:12];
//
self.myCategoryView.titleLabelZoomEnabled = NO; //
self.myCategoryView.titleLabelZoomScale = 1.0;
self.myCategoryView.cellWidthZoomEnabled = NO; // cell
self.myCategoryView.cellWidthZoomScale = 1.0;
self.myCategoryView.selectedImageInfoArray = selectedImageNames;
self.myCategoryView.loadImageBlock = ^(UIImageView *imageView, id info) {

View File

@@ -34,7 +34,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
- (void)viewDidLoad {
[super viewDidLoad];
// [self setupUI];
[self setupUI];
}
@@ -69,7 +69,8 @@ static const CGFloat JXheightForHeaderInSection = 50;
//
self.categoryView.titleColorGradientEnabled = NO;
//
self.categoryView.titleLabelZoomEnabled = NO;
self.categoryView.cellWidthZoomEnabled = NO;
self.categoryView.cellWidthZoomScale = 1.0;
self.categoryView.contentScrollViewClickTransitionAnimationEnabled = NO;
// Unselected items need a rounded gray background like the screenshot.
// JXCategoryTitleView supports cell background colors via JXCategoryIndicatorView.
@@ -89,6 +90,7 @@ 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.indicatorWidthIncrement = 0; //
//
backgroundView.scrollEnabled = NO;
backgroundView.scrollAnimationDuration = 0;