2012-03-16 134 views

回答

3
segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar; 

UIColor *newTintColor = [UIColor colorWithRed: 251/255.0 green:175/255.0 blue:93/255.0 alpha:1.0]; 
    segmentedControl.tintColor = newTintColor; 

UIColor *newSelectedTintColor = [UIColor colorWithRed: 0/255.0 green:175/255.0 blue:0/255.0 alpha:1.0]; 
    [[[segmentedControl subviews] objectAtIndex:0] setTintColor:newSelectedTintColor];