![]() ![]() h ViewController : (strong, nonatomic) UISegmentedControl (strong, nonatomic) UISegmentedControl. I am creating UIsegmented control using code but if you using IBOutlet you can go with that also. Let me share the way how to change UISegmentedControl text font size and text color.Ĭreate a new viewcontroller in your project or may create a new project if you dont want to modify your existing project for safety point of view. Interface builder is not providing the option to change the text font size. Finally in line 28-29 I also Dispose of the. And in line 24, I use the BlackTextBrush to paint Text on all other TabPage headers. Then in line 21, I use the RedTextBrush to paint the Text for the selected TabPage header. ![]() font() on it like this: Text('This is an extremely long text string that will never fit even the widest of phones without wrapping'). Code to Change the Text Color Here’s the code I’m using to change the Text color of a selected tab to Red. Now, click on the small circle in the icon and adjust the color as needed by clicking OK. Click and drag the white line to adjust the hue in the outer circle. Select Advanced in the Colors popout box. Also, first select the text that we want to change color. but some times it requires to change the font size of the UISegmentedControl text. By default a Text view has a Body Dynamic Type style, but you can select from other sizes and weights by calling. But if users still can ’ t find the color they want, click More Font Colors. UISegmentedControl is mainly used to toggle between two screen or functionality from a common screen.
0 Comments
Leave a Reply. |