Fix header tint color issue in SegmentedViewController. Fix #2260.

This commit is contained in:
SBiOSoftWhare
2019-02-18 15:31:56 +01:00
parent 7d7379bbbc
commit a30e6dedb0

View File

@@ -127,6 +127,24 @@
return viewControllers;
}
- (void)setSectionHeaderTintColor:(UIColor *)sectionHeaderTintColor
{
if (_sectionHeaderTintColor != sectionHeaderTintColor)
{
_sectionHeaderTintColor = sectionHeaderTintColor;
if (selectedMarkerView)
{
selectedMarkerView.backgroundColor = sectionHeaderTintColor;
}
for (UILabel *label in sectionLabels)
{
label.textColor = sectionHeaderTintColor;
}
}
}
#pragma mark -
- (void)finalizeInit