Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tint color on non-bar style segmented control

I've got a compilation issue with a UiSegmentedControl, whose style is bezeled. The colour is black. I get an error:

"Tint color on non-bar style segmented control"

Can this be solved, and is it an issue for app submission?

like image 287
cannyboy Avatar asked Feb 23 '23 17:02

cannyboy


2 Answers

I think that's a bug in Xcode/Interface Builder.
The iOS HIG say nothing about the different styles and the documentation explicitly allows tint colors for bezeled UISegmentedControls:

UISegmentedControlStyleBezeled
Segmented controls in this style can have a tint color.

I would just ignore the warning.

like image 132
klaussner Avatar answered Mar 03 '23 15:03

klaussner


In the interface builder, select the Segment control.

In the Attribute inspector, Set the Tint to Default.

like image 36
Dharnishr Avatar answered Mar 03 '23 14:03

Dharnishr