0

i want to change the color of the segment color while loading the application.

or is it possible to change the color of the segmentcontrol according to the NavigationBar header/title color?

Provide any solution with any code snippet or any useful link,which would be appreciated.

Charles Sprayberry
  • 7,741
  • 3
  • 41
  • 50
Developer
  • 1,009
  • 8
  • 25
  • 56

1 Answers1

3

This is in the documentation for UISegmentedControl under the tintColor property, e.g.:

UISegmentedControl *segmentedControl;
segmentedControl.tintColor = [UIColor redColor];

If you prefer, you can use the -setTintColor: method:

[segmentedControl setTintColor:[UIColor redColor]];
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345