When I enable the Search bar on a DialogViewController
, how is the searchbar's tint changed?
EnableSearch = true;
SearchPlaceholder = "Find station";
AutoHideSearch = false;
When I enable the Search bar on a DialogViewController
, how is the searchbar's tint changed?
EnableSearch = true;
SearchPlaceholder = "Find station";
AutoHideSearch = false;
Taking Miguel's help, I found that the
TableHeaderView
containers theSearchBar
so I could do this to change thetint
after thesearchBar
is instantiated (thanks):The searchbar in MonoTouch.Dialog is private, you would need to modify your source code to change the TintColor when the searchBar is instantiated.
Another option suggested in the comments is to use: