material-design - IOS 材质组件:MDCBottomAppBarView
问题描述
我已经检查过,但找不到任何有关此的信息。
有没有办法在 MDCBottomAppBarView 中设置文本和图像,设置 MDCBottomAppBarView 的高位?
解决方案
您可以通过以下方式设置图像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)
推荐阅读
- python - 格式良好的 XML 在 zip 文件中读取时抛出 XMLSyntaxError
- android - 即使从最近的任务中清除应用程序,Android 也会继续下载
- node.js - 员工层次结构的递归函数(nodejs)
- javascript - Promise 函数中的 Promise:无法将数据推送到数组中
- javascript - JS 异步函数停止页面加载
- python - 删除字符串中每个句子中特定符号后的单词
- python - Odoo V10 - 计算字段
- node.js - 无法从 react-script 卸载 webpack
- ios - iOS 框架关系
- c - C 编程 - 从文件中读取数据并将其存储在链表中