rs / SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
MIT License
1.2k stars 180 forks source link

Request: Arrow color #30

Open MaxHasADHD opened 11 years ago

MaxHasADHD commented 11 years ago

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.

HeathHopkins commented 11 years ago

Put it inside of a UIView that has the background color you want.

ghost commented 10 years ago

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.

nissaba commented 9 years ago

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; }