iphone - Hiding TabBar Item -
I have an application where I have a TabBar controller with 4 tabs, when you click the button on the front view (Which is the first tab), a view has been uploaded in the navigation view. Now I want to use UIImagePicker controller to take a picture and save it in another view. When I do this, the modal controller loads, but the bottom bar of that controller in which the button selects and cancel is covered by the tabbar.
I tried
viewController.hidesBottomBarWushedPushed = yes;
But it does not hide the tabbar
Is there any way to hide the tabbar or to load the Model Controller view to select the image on the tabbar?
Because you're standing the view on the navigation stack (I think [the self-push viv controller: etc. ]) All of this is happening inside the navigation controller and so the tab bar will always appear at the top.
What do you need to do to add it to the top of the window, which is holding navigation controller. Assume that you have a navigation controller owned by an app representative, then your code may be something like this:
MyAppDelegate * appDelegate = (MyAppDelegate *) [[UIApplication sharing representative] ]; [AppDelegate.window addSubview: myOtherViewController.view];
Hope that helps!
Comments
Post a Comment