I am not able to select the index in my UISegmentController. I can manually touch via the simulator and I can set the selectedSegmentIndex via code, but I am not able to have it show up in the simulator the index that I have set via code. What I would like to see is that the index that I have set shows as being selected to the user, without the user actually physically clicking on the item.
if([mealPlanTable isHidden]){
segCont.selectedSegmentIndex = 0;
NSLog(@"%d", [segCont selectedSegmentIndex]);
[self mainControl:segCont];
}
This will set the index and then call the mainController which does an action based on the index selected, which does work. I am able to use the value that I set but am just not able to visually see that the Segment is selected aka is blue in the simulator.