我的 iOS 应用程序中有一个 UISearchController
。当用户点击其 UISearchBar
时,键盘会弹出并显示一个取消按钮。如何更改取消按钮的文本颜色?
最佳答案
只需设置搜索栏的色调。 :) 就这么简单。
关于ios - 如何更改 UISearchBar 取消按钮的文本颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38901180/
我的 iOS 应用程序中有一个 UISearchController
。当用户点击其 UISearchBar
时,键盘会弹出并显示一个取消按钮。如何更改取消按钮的文本颜色?
最佳答案
只需设置搜索栏的色调。 :) 就这么简单。
关于ios - 如何更改 UISearchBar 取消按钮的文本颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38901180/
相关文章:
ios - 添加 UISearchBar 后 UITableView 底部的空白区域
swift - 在搜索栏(ModernSearchBar)之后重新加载表格 View
ios - iOS中如何通过storyboard将UISearchBar添加到NavigationBar
iOS - 使用动画更改 Root View Controller
iOS 13/14 模态视图 Controller 解除检测
ios - Xcode 9.3 Swift嵌套自定义框架单元测试和iTunesConnect上传
iOS : How using different size image with the same name in Assets. xcassets 在不同设备或不同景观上运行时
ios - CoreData 中一对多关系的排列/有序复选框
ios - [UITableView dequeueReusableCellWithIdentifier :forIndexPath:] 中的断言失败