添加UISearchController Swift的按钮,Uikit

发布于 2025-02-08 16:50:48 字数 159 浏览 0 评论 0原文

我想在导航中的搜索控制器中添加一个按钮,但是不确定如何实现……任何想法? 我正在以编程方式进行

我想复制此

I want to add an button right to the search controller in the navigation, but am not sure how can I implement that... any Ideas?
Am doing it programmatically

I want to replicate this

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黄昏下泛黄的笔记 2025-02-15 16:50:48

使用水平堆栈视图,并在左侧嵌入搜索栏,并在右侧嵌入一个按钮。将按钮的图像视图设置为“齿轮”图像或任何您想要的图像。

Use a Horizontal StackView and embed a search bar on the left, and a button on the right. Set the button's imageView to the "gear" image or whatever image you'd like.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文