I've created a custom UISearchBarDelegate. In the OnEditingStarted-event, I'm adding scope buttons to the search bar:
public override void OnEditingStarted(UISearchBar searchBar)
{
searchBar.ScopeButtonTitles = new[] { "Scope 1", "Scope 2" };
searchBar.ShowsCancelButton = true;
searchBar.ShowsScopeBar = true;
}
This is working as expected, the scope buttons are shown underneath the search field.
The only thing is, I'm not able to toggle the scope. When tapping "Scope 2" nothing happens, not even visually.
Are there any other settings one is supposed to do, in order get this working? Are there known/common pitfalls that can prevent (scope)buttons from working?