简体   繁体   中英

How can I customize the bottom tab bar of UITabBarController to this exact mockup?

I would like to customise the bottom bar of the UITabBarController to like this:

在此处输入图片说明

How can I achieve this? Thanks!

This should be easy on iOS 5xx and above. You need to look at the UIAppearance proxy methods which allow skinning of Apple default UIKit elements.

UITabBar has

@property(nonatomic,retain) UIImage *backgroundImage

UITabBarItem has

- (void)setFinishedSelectedImage:withFinishedUnselectedImage:
- (void)setTitlePositionAdjustment:

I think this web page would be of some value to you:

Recreating the raised Center Tab Bar Button...

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