title: How to change font color of UISegmentedControl
body: <p>I try to change font color from white to black for <code>UISegmentedControl</code> (for iOS 4.*)</p>
  
  <pre><code>UISegmentedControl *button = [[[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:itemTitle, nil]] autorelease];
  button.momentary = YES;
  button.segmentedControlStyle = UISegmentedControlStyleBar;
  button.tintColor = [UIColor redColor];      
  for (id segment in [button subviews]) {
      for (id label in [segment subviews]) {
          if ([label isKindOfClass:[UILabel class]]) {
              UILabel *titleLabel = (UILabel *) label;
              [titleLabel setTextColor:[UIColor blackColor]];
          }
      }
  }
  UIBarButtonItem *barButtonItem = [[[UIBarButtonItem alloc] initWithCustomView:button] autorelease];
  </code></pre>
  
  <p>But text color does not changed. What I should do for change text color for <code>UISegmentedControl</code>?</p>