1

I have a Tab bar application where I would like to hide the tab bar for one of the views to exchange it with a toolbar. I am using Storyboard and by setting the Bottom Bar to None and dragging in a toolbar this looks the way I would want it on the storyboard. But when I run it the Tab bar doesn't go away.

icodebuster
  • 8,890
  • 7
  • 62
  • 65
Jorgen
  • 465
  • 3
  • 10
  • 24

2 Answers2

5

I had the same question but ended up finding my correct answer here

Essentially, you can hide the tab bar for certain view controller by checking the 'Hide bottom bar on push' check box (in the view controllers attributes inspector in the storyboard).

This might not answer all, and might not be compatible with =< iOS 5, etc, but it helped me and I hope it helps others who come here.

Thanks, and good luck!

Community
  • 1
  • 1
Joel Balmer
  • 1,428
  • 2
  • 19
  • 21
  • 1
    I had a problem with this approach. When the new view appears, the space where the tab bar would be is empty, then the view stretches to occupy that space. – Marcio Cruz Feb 09 '16 at 00:52
3

It wont work because it only simulate the view when the tabbar is hidden. If you want to hide tabbar you have to do it programmatically.

See this answer Iphone: Is it possible to hide the TabBar?

and try to use hideTabbar method in viewWillAppear, and showTabbar in viewDidDisapear.

Community
  • 1
  • 1
edzio27
  • 4,126
  • 7
  • 33
  • 48
  • That worked beautifully in portrait. Just have to work out how to get it to work in landscape. Will I have problem between iPhone 5 and 4? – Jorgen May 04 '13 at 10:58
  • Following downwards in that link I found the right version that worked great for all sorts of screens and both landscape and portrait. Thanks! – Jorgen May 04 '13 at 12:47