Nitesh Nitesh - 1 year ago 90
iOS Question

GET String of UISearchController's scopeButtonTitles

Is it possible to get string of UISearchContoller's segment controls ?

We get index path of that in this way

searchController.searchBar.selectedScopeButtonIndex


But instead of indexPath, I want to get the String.

Answer Source
searchController.searchBar.scopeButtonTitles![searchController.searchBar.selectedScopeButtonIndex]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download