Shraddha Harne
Shraddha Harne

Reputation: 95

Iphone:removing the toolbar

I am developing an Iphone application. I have a Controller say "StepMopdeView".I have displayed a toolbar on this screen using statement [self.parentViewController.view addSubview:navigateToolBar];

I want the toolbar to be displayed on this this screen but it is displayed on all the screens. I dont want this toolbar to be displayed on any other screens.I am trying to do this but not able to achieve it.Can any one please guide me regarding how can i do it?

Thanks, Yogesh Chaudhari

Upvotes: 0

Views: 98

Answers (1)

WrightsCS
WrightsCS

Reputation: 50697

simply call [navigateToolBar setHidden: YES]; in the viewWillDisappear: method of the the viewController that created the toolbar.

Upvotes: 1

Related Questions