Well, for those who have the same problem, to hide the scope, you really need to set the scopeButtonTitles property to nil:
searchbar.scopeButtonTitles = nil;
and install them programmatically if you want to show scopeBar:
searchbar.scopeButtonTitles = [NSArray arrayWithObject:@"Button 1", @"Button 2",...,nil];
It works. The showScopeBar property must be true.
searchBar.showsScopeBar = YES;
source
share