I have two forms that interact with each other. view1 (let's call it) has a form that a user fills out and when that user is done filling out the form he/she hits a "continue" button which opens up view2. On view2 I've create a toolbar on the bottom of the view with some basic buttons that perform various tasks related to view2. After initializing, adding buttons, etc... to the toolbar I've added the toolbar to my view like so:
Code:
//Add the toolbar as a subview to the navigation controller.
[self.navigationController.view addSubview:toolbar];
On view2 there is also a navigation bar at the top that has a button allowing the user to go back to view1. My problem is that when the user goes back to view1 from view2 I can't get the toolbar from view2 to go away. I.e., the toolbar still shows on view1 when it should be hidden. When the button to go back to view1 is clicked can't I just set toolbar.hidden=TRUE; in view2? Where would I put that piece of code? This seems really easy and I've gone through a lot of tutorials/forums/examples but I just can't find the answer. Extreme newbie here... thanks for your patience and help!