Style setting of UISegmentedControl does nothing

Could someone please explain what the purpose of Style property is in Interface Builder for segmented controls? No matter whether I select Plain, Bordered, or Bar, the control always looks / acts the same.

Thanks.

Answered by Claude31 in 722626022

That's because it is deprecated (but Xcode still proposes different styles).

Doc for UISegmentedControl in Xcode says:

Deprecated

Segmented controls no longer support multiple styles using this functionality. Use the other appearance modification methods and properties to customize a segmented control.

Accepted Answer

That's because it is deprecated (but Xcode still proposes different styles).

Doc for UISegmentedControl in Xcode says:

Deprecated

Segmented controls no longer support multiple styles using this functionality. Use the other appearance modification methods and properties to customize a segmented control.

Style setting of UISegmentedControl does nothing
 
 
Q