我在从AsyncCallback更新我的UITableView时遇到了问题,但更新标签工作正常吗?我的代码如下所示:
private void ProcessHttpResponse(IAsyncResult iar) {
// Do some work ...
InvokeOnMainThread(delegate {
myTable.Source = new MyTableViewSource(this.Controller,result.Messages);
txtInfo.Text += "Received request from: ";
});
}除了设置源之外,我还需要对我的表做一些其他的事情吗?
发布于 2010-08-24 16:14:02
myTable.Source上没有ReloadData()之类的东西吗?
在将响应添加到数据源之前,我还会添加更多的响应验证,并在一个很好的try / catch中完成所有操作:)
https://stackoverflow.com/questions/3543486
复制相似问题