Open MaxHasADHD opened 11 years ago
Put it inside of a UIView that has the background color you want.
I'm looking for this addition as well. I want the Segmented Controller to be white and the view under it to be grey with the arrow grey. Otherwise it looks bad.
works for ios7 (for some reason not on 8) segmentedControlAppearance.borderColor = [UIColor whiteColor]; under iOS 8 we needed to hack the code for some obscure reason // Init border bottom layer [self.layer addSublayer:_borderBottomLayer = CAShapeLayer.layer]; if (!SD_IS_IOS7) { self.borderColor = UIColor.whiteColor; self.borderWidth = .5; } else { // self.borderColor = UIColor.blackColor; // self.borderWidth = .25; self.borderColor = (__bridge UIColor *)(_borderBottomLayer.borderColor); self.borderWidth = _borderBottomLayer.borderWidth; }
Im trying to make it look like the segment control is part of a UINavigation bar but since the arrow is clear i can still see the navigation bar bit under it, but if it were white it would look like its built into it.