首页 > 解决方案 > 如何更改 UISearchbar 中文本的 fontSize?

问题描述

let font = UIFont.systemFont(ofSize: 80)
self.searchBar.setScopeBarButtonTitleTextAttributes([NSAttributedString.Key.font : font], for: .normal)

标签: iosswiftuisearchbar

解决方案


推荐阅读