首页 > 解决方案 > IOS 材质组件:MDCBottomAppBarView

问题描述

我已经检查过,但找不到任何有关此的信息。

有没有办法在 MDCBottomAppBarView 中设置文本和图像,设置 MDCBottomAppBarView 的高位?

标签: material-design

解决方案


您可以通过以下方式设置图像setImage

let appBarBottom = MDCBottomAppBarView()
appBarBottom.floatingButton.backgroundColor = UIColor.white // Change this if you have another color icon
appBarBottom.floatingButton.setImage(UIImage(named: "IMAGE NAME"), for: UIControl.State.normal)

推荐阅读