2016-09-12 3 views
0

UISearchContollerのセグメントコントロールの文字列を取得することは可能ですか?私たちは、このようGET UISearchControllerのscopeButtonTitlesの文字列

searchController.searchBar.selectedScopeButtonIndex 

しかし、その代わりにindexPathの中にいるのインデックスパスを取得

、私は文字列を取得したいです。

答えて

1
searchController.searchBar.scopeButtonTitles![searchController.searchBar.selectedScopeButtonIndex] 
関連する問題