I added my UISegmentedControl from Interface Builder easily enough. I just wanted needed to change it to the needs of the data.
BUT…since I added it in interface builder I cannot use initWithArray: so I need to connect it up in Xcode, clear it out and then add in what I need. Then we’ll update the app when the UISegmentedControl is updated.
@interface TopicViewController : UIViewController @property (strong, nonatomic) IBOutlet UIButton *filterButton; @property (strong, nonatomic) IBOutlet UISegmentedControl *filterSegmented; -(void)segmentChanged:(id)sender;