SegmentedControlStyle is deprecated in iOS 7 and later (8.4) | Xcode 6.4

I have a problem the other day. I am new to Xcode , and I had the task of updating the code used for the application in iOS 6.1 to 8.4 , but there are so many outdated methods . I solved most of them, but I just can't find how to solve them, or for what code can I change them ... Does anyone have an idea?

Thank you very much!

Both, " segmentedControlStyle " and " UISegmentedControlStyleBar ) are deprecated.

This is the line that causes me problems.

showControl.segmentedControlStyle = UISegmentedControlStyleBar;

+5
source share
2 answers

The segmentedControlStyle property segmentedControlStyle deprecated because it does not work in iOS 7.

UISegmentedControl instances now have only one style, so you can completely remove this line. If your appearance is undesirable, you need to further customize it to achieve the intended look.

+3
source

All Articles