1
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user