Search code examples
iosxcodeuisegmentedcontroluicolor

change the back ground color of segmented control buttons


friends,

I am able to change the size of segments in segmented control but i need to change the background color of the segments to orange color

any detailed view will be helpful


Solution

  • You set the segment control tintColor (color code as per your required).

    segmentedControl.tintColor = [UIColor colorWithRed:.9 green:.1 blue:.1 alpha:1];