简体   繁体   中英

Make custom selected tab bar Item in iOS Swift

I am working on an application using Swift which needs to have a TabBarController and when user will select a tab then that particular tab bar item shows a 3d visual effect (Although it will be an static image I guess) which contains shadow and that tab bar item will be bigger in size as well with different tint colour.

Please see the attached image.

在此处输入图片说明

I have searched a lot on internet but no luck. Please someone help :(

Use http://cocoapods.org/pods/M13InfiniteTabBar

For as much as I do not like answers in the tone It can't be done , I feel that the specific of your screenshot, namely going outside of the UITabbar background, can't be done with UITabBarController .

You can use -initWithTitle:image:selectedImage: . Documentation found here

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