Xamarin.ios 如果TableView的源为空,则显示消息或备用视图
我正在使用MVVMCross'Xamarin.ios 如果TableView的源为空,则显示消息或备用视图,xamarin.ios,mvvmcross,Xamarin.ios,Mvvmcross,我正在使用MVVMCross'MvxStandardTableViewSource,它是一个UITableViewSource 我已经注册了一个自定义单元格,用于显示源中的项目。这一切都按预期进行 var source = new MvxStandardTableViewSource(this.TableView, new NSString("MyItemCell")); TableView.Source = source; TableView.R
MvxStandardTableViewSource
,它是一个UITableViewSource
我已经注册了一个自定义单元格,用于显示源中的项目。这一切都按预期进行
var source = new MvxStandardTableViewSource(this.TableView, new NSString("MyItemCell"));
TableView.Source = source;
TableView.RowHeight = UITableView.AutomaticDimension;
TableView.EstimatedRowHeight = 52.0f;
TableView.RegisterClassForCellReuse(typeof(MyItemCell), new NSString("MyItemCell"));
TableViewSource的源由搜索驱动,因此有时可能为空
建议采用什么方式传达没有搜索结果?它是TableHeaderView中的自定义UIView还是同一TableHeaderView中的附加自定义单元格?我遇到的问题是如何在表格周围插入额外的UIView 最后,我决定采用以下方法