Customizing the colors of a UISegmentedControl

后端 未结 12 1819
萌比男神i
萌比男神i 2020-12-08 07:26

Does anybody know of a way to customize the appearance of the string based UISegmentedControl? I am trying to set the background color of the cell and the text color differe

12条回答
  •  粉色の甜心
    2020-12-08 07:55

    segmentedControl.tintColor = [UIColor colorWithRed:0.61176f green:0.61176f  blue:0.61176f  alpha:1.0f];
    
    segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
    

提交回复
热议问题