【发布时间】:2012-02-26 19:07:23
【问题描述】:
在 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
谢谢
【问题讨论】:
标签: c# ios uitableview xamarin.ios datasource