Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AbhishekApple

macrumors member
Original poster
Aug 5, 2010
86
0
i hv added toolbar with navigation controller. when i enter details view i want to remove the toolbar
Code:
[toolbar setItems:[NSArray arrayWithObjects:btnPrev,btnNext,btnPage,nil]];
[self.navigationController.view addSubview:toolbar];

i tried doing this bt dint worked
Code:
self.navigationController.view removeFromSuperView:toolbar];

Also tried,
toolbar.hidden=true;

but where should i write,
toolbar.hidden=false;

which will reactivate the toolbar once i exit the details view.


And 3rd solution also didn't worked the below code hides the tabbar control and not the toolbar in the detailview
Code:
MyDetailViewController *detailView = [[MYDetailViewController alloc] initWithNibName:@"DetailView" bundle:nil];
detailView.hidesBottomBarWhenPushed=TRUE;
[self.navigationController pushViewController:detailView animated:YES];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.