【问题标题】:MonoTouch - How to redraw immediately UITableView when datasource is clearedMonoTouch - 清除数据源时如何立即重绘 UITableView
【发布时间】: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


    【解决方案1】:

    你是从某个地方打电话给tbl.ReloadData (); 吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-12-05
      • 1970-01-01
      • 2019-03-05
      • 1970-01-01
      • 1970-01-01
      • 2015-12-12
      • 1970-01-01
      相关资源
      最近更新 更多