ios - Xcode Animated Tab Bar Controller - 设置图标的外观

标签 ios swift xcode

我有动画标签栏 Controller :

enter image description here

我想把它改成这样:

enter image description here

变化将涉及: - 图标和铭文之间的空间(垂直), - 中间的按钮应该在这个圆圈中,向上凸起。

有人知道我该怎么做吗? 我可以分享我的 Storyboard 文件。

我正在使用这个组件: https://github.com/Ramotion/animated-tab-bar

该项目使用 Swift 4。

最佳答案

你的问题

1) 图标和文字之间的空间(垂直)

->> Reduce size of images 

2) 中间的按钮应该在这个圆圈中,向上凸起。

->>> get bigger image of circle and apply image inset 

注意:确保无论你在另一侧应用什么值,它都应该与负值相同,就像我在顶部应用 2 和另一侧 -2在底部,如果你不这样做,你将在点击时得到意想不到的输出

enter image description here

奖励

如果你想要你的图像,那么应用 Render as original

enter image description here

希望对你有帮助

关于ios - Xcode Animated Tab Bar Controller - 设置图标的外观,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49994092/

相关文章:

ios - Xcode 代码签名错误,因为钥匙串(keychain)中没有 key

swift - 从通讯录中获取 kABAddressCountryCodeKey

Swift Firebase getIDToken() 使用 Google 凭据崩溃

用于 xCode 错误的 C++11

xcode - 错误ITMS-90168: “The binary you uploaded was invalid.”

ios - 使用 Eureka 表单隐藏部分的页眉和页脚

ios - 在 swift 中使用 JSONSerialization 和 JSONDecoder 有什么区别?

ios - swift 音频套件 : How to build an VCO who's pitch is controlled by an AR-envelope?

cocoa - 使用 NSPredicateEditor 强制显示复合行

ios - 未调用 didTapMyLocationButtonForMapView