I’ve been working through a tutorial on raywenderlich.com called Objectively Speaking: A Crash Course in Objective-C. In the tutorial they use a segmented control, which to my understanding I’ve connected correctly in IB. I’ve tried posting my problem but after 5 days I still haven’t had any help.
I suspect the problem is something like a connection issue. Could someone please look at my project and let me know where I’ve gone wrong. The zip files can be found here: Options, Options, Options.
You have two segmented controls in your XIB, one on top of the other.
The problem is that the bottom segmented control is hooked up via the IBOutlet, but you’re actually selecting the segmented index of the top one.
To fix it, delete the bottom segmented control (the one with out constraints) and hook up the IBOutlet to the single remaining segmented control.