I have a root view that has some icons on it that when pressed will take you into a navigation controller. However, I need to add more icons than what will fit on the view, therefore I would like to separate some of the icons within different segments with a segmented control. So I'm wanting to load a different view (xib) when a different segment is selected. I'm not having any luck finding any examples that explain how to push another root view, though. All I can find is how to push a view deeper into a navigation controller.
Hope this makes sense.
Edit: Here's an example of what I mean.
I have the segmented control code setup, I just don't know what to put within:
to load the different xib.
Hope this makes sense.
Edit: Here's an example of what I mean.
I have the segmented control code setup, I just don't know what to put within:
Code:
UISegmentedControl* segCtl = sender;
if( [segCtl selectedSegmentIndex] == 0 ){
}
if( [segCtl selectedSegmentIndex] == 1 ) {
}
to load the different xib.