2
在MonoTouch中,當我清除其數據源時,如何立即重繪空UITableView
?MonoTouch - 如何清除數據源時立即重繪UITableView
List<string> ds = new List<string>();
UITableView tbl = new UITableView();
tbl.DataSource = new MyTableViewDataSource(ds);
//And the other parts(datasource class, delegate class etc.) are truely coded when i try to do somewhere at my program, something like
ds.Add("new string");
//it works and table shows new data too, but when i say
ds.Clear();
//it works and clear but table is not redrawn
感謝