user1140780 :
We used the approach mentioned by siddarth. \n\nSubclass the segmented controller and overriding the drawrect() method. Something like this:\n\n- (void)drawRect:(CGRect)rect\n{\n[super drawRect:rect];\n\nfor (int i=0; i<[self.subviews count]; i++)\n{\n if ([[self.subviews objectAtIndex:i]isSelected] )\n {\n UIColor *tintcolor=[UIColor redColor];\n [[self.subviews objectAtIndex:i] setTintColor:tintcolor];\n } else {\n UIColor *tintcolor=[UIColor grayColor]; // default color\n [[self.subviews objectAtIndex:i] setTintColor:tintcolor];\n }\n }\n\n}\n",
2012-10-17T20:38:17