ios - UISearchBar 按钮

标签 ios swift uisearchbar

我在 Xcode 中处理 UISearchBar 并在运行该应用程序时,此按钮出现在搜索文本字段中,此后它仍然存在。

有没有人遇到过这个问题?如何删除这个按钮。

enter image description here

enter image description here

最佳答案

在 Attributes Inspector 中取消选择 Shows Search Results Button 属性。

enter image description here

关于ios - UISearchBar 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43085501/

相关文章:

ios - 如何 JSON 序列化包含一系列 CGPath 的 NSData

swift - 本地化 iOS 14 动态 WidgetKit 配置

swift - 尝试关闭选择器时收到错误

ios - UISearchController 的 UISearchBar 在事件时移出屏幕

ios - UISearchBar 在添加到 iOS 7.1 上的 UITableViewCell 时更改其 super View

objective-c - 适用于 iOS 的沙子物理学

ios - UITableView 深色主题

ios - 与 Apple Watch 共享来自 iOS 的 AsyncStorage React native 应用程序

objective-c - UISearchBar 搜索两个数组

ios - 从 super View 中删除 Nib