修改指示器样式
This commit is contained in:
@@ -102,13 +102,11 @@
|
|||||||
_titleView.cellWidth = 60;
|
_titleView.cellWidth = 60;
|
||||||
_titleView.listContainer = self.containerView;
|
_titleView.listContainer = self.containerView;
|
||||||
|
|
||||||
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
|
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
|
||||||
lineView.indicatorImageViewSize = CGSizeMake(60, 8);
|
lineView.indicatorImageViewSize = CGSizeMake(13, 4);
|
||||||
lineView.verticalMargin = 6;
|
lineView.verticalMargin = 0;
|
||||||
lineView.indicatorImageView.image = [UIImage gradientColorImageFromColors:@[UIColorFromRGB(0xFFC000), UIColorFromRGB(0xFFD15A)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(60, 8)];
|
lineView.indicatorImageView.image = [UIImage imageNamed:@"home_segment_indicator"];
|
||||||
lineView.indicatorImageView.layer.masksToBounds = YES;
|
_titleView.indicators = @[lineView];
|
||||||
lineView.indicatorImageView.layer.cornerRadius = 4;
|
|
||||||
_titleView.indicators = @[lineView];
|
|
||||||
}
|
}
|
||||||
return _titleView;
|
return _titleView;
|
||||||
}
|
}
|
||||||
|
@@ -329,11 +329,9 @@ static NSString *lastSelectTab = @"lastSelectTab";
|
|||||||
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_entry eventAttributes:@{@"defaultTab" : self.titles[index.intValue]}];
|
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventcollection_entry eventAttributes:@{@"defaultTab" : self.titles[index.intValue]}];
|
||||||
|
|
||||||
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
|
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
|
||||||
lineView.indicatorImageViewSize = CGSizeMake(50, 8);
|
lineView.indicatorImageViewSize = CGSizeMake(13, 4);
|
||||||
lineView.verticalMargin = 12;
|
lineView.verticalMargin = 5;
|
||||||
lineView.indicatorImageView.image = [UIImage gradientColorImageFromColors:@[UIColorFromRGB(0x5BC8F8),UIColorFromRGB(0x66D9D9)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(50, 8)];
|
lineView.indicatorImageView.image = [UIImage imageNamed:@"home_segment_indicator"];
|
||||||
lineView.indicatorImageView.layer.masksToBounds = YES;
|
|
||||||
lineView.indicatorImageView.layer.cornerRadius = 4;
|
|
||||||
_titleView.indicators = @[lineView];
|
_titleView.indicators = @[lineView];
|
||||||
}
|
}
|
||||||
return _titleView;
|
return _titleView;
|
||||||
|
Reference in New Issue
Block a user