Hi Every one I have have a problem with present model view Controller. Here's the scenario:
This is navigation bar application I have a UIViewController class in which I add another class of UIView
Controller by using this statement [self.view addSubView:controllerClass]
;
In controllerClass I have insert tab bar at the bottom and also write its delegates on each tab bar click i'll add another UIViewController
class to it as a subView but i'll make the height or frame to this controller is (0,0,320,369)
. so that tab bar shown through out when we click on different tabs.
By clicking on first tab say ScannerViewController add a subview. There is a gallery button in this View. when user clicks on it a presentModel View Controller Insert to it and hide the navigation bar when i select the image from the gallery and make navigation bar hidden =NO
, it dosen't work and the tab bar on bottom was disappeared.
It sounds like you're abusing the tab bar construct. Each tab on the tab bar should have it's own UINavigationController rather than sharing one controller per tab.
Also, in my experience it's best to present the modal view controller using the AppDelegate's lowest level view. I.e. the view that was added to the UIWindow object when the app started.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With