I got this problem the other day. I'm new at Xcode, and I had the task of upgrade the code used for an app in iOS 6.1 to 8.4, but there are so many deprecated methods. I solved most of them, but I just simply can't find how to solve these ones, or for what code I can change them... Does anyone has an idea?
Thank you so much!!
Both, the "segmentedControlStyle" and the "UISegmentedControlStyleBar" are deprecated.
This is the line causing me problems.
showControl.segmentedControlStyle = UISegmentedControlStyleBar;
The segmentedControlStyle
property has been deprecated because in iOS 7 it has no effect.
Instances of a UISegmentedControl
now only have one style, so you can remove that line entirely. If your appearance is undesirable, you'll need to tweak further to achieve the intended look.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With