Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-22-2009, 12:20 PM   #1 (permalink)
slybitz
New Member
 
Join Date: Jun 2009
Posts: 10
Default hide/remove toolbar

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!
slybitz is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,297
Threads: 39,093
Posts: 171,397
Top Poster: smasher (2,575)
Welcome to our newest member, thinriver
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:29 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.