Reputation: 185
I am new to iphone development. Can anyone tell me how to implement a vertical tab bar? I want something that looks like the tab bar on the right side of the screenshot in this link http://michelangelo.com/2011/11/nps-national-mall/ with the overview, events and other options displayed in the image. Thanks!
Upvotes: 0
Views: 192
Reputation: 4546
A tabbar is nothing more then a bunch of buttons next to eachother where one (or none) button has a 'selected' state. To create a vertical tab-bar: Simply place a few buttons below each other and attach corresponding listeners from those buttons to your viewcontroller (delegate).
Everytime you press one of these buttons all the buttons go into the 'default' state and the button you pressed changes to 'selected' state. After that you can load a new view with (for instance) a UINavigationController
Upvotes: 2