问题
I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do.
I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help!
回答1:
I imagine the best way to go about it would be to populate a UIView
with a bunch of UIButton
s and style it like a UITabBar
. To save time, you could take the code from this custom tab bar, and modify it to fit your needs.
回答2:
A vertical tab bar implementation for iPad can be found here.
回答3:
Recently I created a simple implementation of vertical tab bar for iOS: https://github.com/futuresimple/FSVerticalTabBarController
Main goal was to mimic the original tab bar as closely as possible, but at the same time it's customizable and you have the code! :)
回答4:
Recently I created a simple implementation of vertical tab bar for iOS: https://github.com/futuresimple/FSVerticalTabBarController It's more "modern" than SEVerticalTabBar as it uses UIViewController mechanism. The downside is that it requires iOS5.
来源:https://stackoverflow.com/questions/5698723/ios-vertical-tab-bar