开发者

Removing the tabBar from a pushed view

How is the tabBar of a viewController that is pushed into view removed?

I have one view which has a tabBar and then this view pushes another view. The view being pushed can then return back the the first view as usual with a navigationController. My issue is that I want a toolbar instead of a tabbar in the pushed view.

If I hide this tab bar, there is just a blank space and my toolbar isnt even visible using

self.navigationController.toolbar.barStyle = UIBarStyleBlackTranslucent;

Is this self.navigationController pointing to the first view which pushed the view calling this statement?

How can the second view(the pushed view) have is own toolbar accessed and displayed, with the tabbar from the first view h开发者_C百科idden?

One example would be the photos app.


This Stack Overflow Question addresses your issue. Basically there is a method hidesBottomBarWhenPushed that will give you that space, just be sure that you have set up your view to expand to fill the space (I use the little springs and ibars in Interface Builder).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜