public void EnableSearchCancelButton (){ foreach (UIView subview in searchBar.Subviews) { if (subview is UIButton) { ((UIButton)subview).Enabled = true; return; } } }
public override void SearchButtonClicked(UISearchBar searchBar) { container.SearchButtonClicked(searchBar.Text); if (!String.IsNullOrEmpty(searchBar.Text)) { container.EnableSearchCancelButton(); } }