Tuesday, 16 October 2012

iPhone Development:Hiding TabBarController while pushing viewController in iPhone SDK







In many of our apps, we want to show a viewController that does not had a bottom tab but our app has been laid out on TabBarController.The default behavior of a TabBarController app is that it contains tab at the bottom of screen and is remained static throughout our whole app.Here's problem occurred, when we encounter a scenario in which we have to push a view controller but in that view controller there's no tab at the bottom. To solve this problem one can use hideBottomBarWhenPushed property of the viewController by setting it to YES.
yourviewcontroller.hideBottomBarwhenpushed=YES;
The above line will hide the bottom tabbar and your viewController will be shown without Tab at the bottom. 



No comments:
Write comments