gpt4 book ai didi

ios - 导航栏中的多个搜索栏

转载 作者:行者123 更新时间:2023-11-30 12:22:03 25 4
gpt4 key购买 nike

我是 iOS 上开发应用程序的新手,我正在尝试添加到 NavigationBar 2 SearchBar 中。添加一个 SearchBar 很简单:

searchController.searchBar.sizeToFit()
navigationItem.titleView = searchController.searchBar

但我不知道如何在导航栏中添加2个搜索栏。

我希望看起来像这样:

enter image description here

最佳答案

我认为没有任何方法可以在导航栏中添加多个搜索栏。根据上面给出的设计,我可以建议您的最佳解决方案是在 ViewController 中添加两个 UITextFields 或两个 UISearchBars,而不是在导航栏中添加。

关于ios - 导航栏中的多个搜索栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44683199/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com