I had a question about the View Controller hierarchy. I want to create a button within a view controller's view, not the root controller, that will switch in the next view. I tried to do this, but the view controller with the button doesn't know about the other view controllers and views, only the root view does.
So i tried writing a method in the root controller that switches the views, but IB has no way of connecting the root view's method to a child view controller's view. In this case should I do something like [super switchViews]; within an IB method in the view controller with the button so it has access to the root controller's method? Or should I write the button for the controller view's view in code in the root controller bypassing IB altogether? Thanks
So i tried writing a method in the root controller that switches the views, but IB has no way of connecting the root view's method to a child view controller's view. In this case should I do something like [super switchViews]; within an IB method in the view controller with the button so it has access to the root controller's method? Or should I write the button for the controller view's view in code in the root controller bypassing IB altogether? Thanks