/// <summary> /// Sets the title of the search bars cancel button /// </summary> /// <param name="searchBar"></param> /// <param name="cancelTitle"></param> public static void SetCancelTitle(this UISearchBar searchBar, string cancelTitle) { searchBar.GetCancelButton().SetTitle(cancelTitle, UIControlState.Normal); }