gpt4 book ai didi

ios - 获取 UISearchController 的 scopeButtonTitles 字符串

转载 作者:行者123 更新时间:2023-11-28 16:11:55 27 4
gpt4 key购买 nike

是否可以获取 UISearchContoller 的段控件字符串?

我们通过这种方式得到它的索引路径

searchController.searchBar.selectedScopeButtonIndex

但我想获取字符串而不是 indexPath。

最佳答案

searchController.searchBar.scopeButtonTitles![searchController.searchBar.selectedScopeButtonIndex]

关于ios - 获取 UISearchController 的 scopeButtonTitles 字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39448218/

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