Hi,

I am new to MT and MT.D, I am trying to get my head round how to properly 
structure the search bar with search scope, I have not found any working 
examples of SQLite IList into a the tableview.source of an inherited 
dialogviewcontroller, and then to get the searching to work, I have got the 
first load of the data working ok I am not getting anywhere with subsequent of 
that data.

In my constructor of my inherited class I have the following

base.AutoHideSearch = true;
base.Autorotate = true;
base.EnableSearch = true;


Am I right in thinking that the ILIST<> is persisted at the class level and 
that the searches don't go back out to the database to build the searches but 
work off the loaded data?

I am also needing to get the search scope buttons into the search bar, but I am 
hitting null errors with the following code

string[] buttons = new string[] { "POI", "Road", "Postcode"} ;
UISearchDisplayController POIsearch = new UISearchDisplayController();
POIsearch.SearchBar.ShowsScopeBar = true; <<--- fails here
POIsearch.SearchBar.ScopeButtonTitles = buttons;

I am sure that all of the issues are my lack of understanding and not bugs so 
any example code just to get me going would be great.

Thanks in advance

Alex

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to