Why - [UISearchBar showsScopeBar] is ignored?

While -[UISearchBar scopeButtonTitles] not nil , the visibility bar is displayed in the search bar, regardless of whether I showsScopeBar to YES or NO . Is this a mistake or am I doing something wrong?

+4
source share
1 answer

You need to set the scopeButtonTitles property to nil to hide the visibility panel:

 searchbar.scopeButtonTitles = nil; 
+5
source

Source: https://habr.com/ru/post/1392370/


All Articles