title: How to set individual segment color in uisegmentedcontrol?
body: <p>I'm using the following code </p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated
  .......
  
  
      [[self.controlStatus.subviews objectAtIndex:2]  setTintColor:[UIColor greenColor]];
      [[self.controlStatus.subviews objectAtIndex:1] setTintColor:[UIColor orangeColor]];
      [[self.controlStatus.subviews objectAtIndex:0] setTintColor:[UIColor redColor]];
  .........
  </code></pre>
  
  <p>But this code is not working always . Sometimes the index changes and 1st segment stays green or orange.
  I don't know whats happening !! Can anyone help me ?</p>