获取 UISearchController 的 scopeButtonTitles 字符串
GET String of UISearchController's scopeButtonTitles
是否可以获取 UISearchContoller 的段控件字符串?
这样我们就得到了那个的索引路径
searchController.searchBar.selectedScopeButtonIndex
但是我想获取字符串而不是 indexPath。
searchController.searchBar.scopeButtonTitles![searchController.searchBar.selectedScopeButtonIndex]
是否可以获取 UISearchContoller 的段控件字符串?
这样我们就得到了那个的索引路径
searchController.searchBar.selectedScopeButtonIndex
但是我想获取字符串而不是 indexPath。
searchController.searchBar.scopeButtonTitles![searchController.searchBar.selectedScopeButtonIndex]