添加UISearchController Swift的按钮,Uikit
我想在导航中的搜索控制器中添加一个按钮,但是不确定如何实现……任何想法? 我正在以编程方式进行
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用水平堆栈视图,并在左侧嵌入搜索栏,并在右侧嵌入一个按钮。将按钮的图像视图设置为“齿轮”图像或任何您想要的图像。
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.