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

This commit is contained in:
SBiOSoftWhare
2019-02-18 15:31:56 +01:00
parent ca8f65672d
commit 10034adb2e
@@ -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