简体   繁体   中英

customize uitabbarcontroller appearance

Is it possible to change the way UITabBarController's look?

For example to arrange the tabBarItems vertically (instead of horizontally) and in the center of the view (instead of locked to the bottom)

For the changes you want, no.

What you are describing is an entirely custom interface that you will need to design from scratch.

It's impossible using the UITabBarController component. But you can use a UIView with lot of buttons that perform the same function of the UITabBarController buttons and place them as you want.

No as the other say, you can't. You can customize visually only the UITabBar using appearance API, but you can't change its layout.
What you want to do can be easily achieved by using the UIViewController container API ( Read Managing Child View Controllers in a Custom Container ) and simple view. Or using storyboards with custom segue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM