Xamarin.ios MonoTouch.对话框:附件视图
我需要在某一行旁边加一个复选框,但是当使用这个覆盖时,我当然会得到下面的警告。在MonoTouch.Dialog中的何处启用检查Xamarin.ios MonoTouch.对话框:附件视图,xamarin.ios,monotouch.dialog,uitableview,Xamarin.ios,Monotouch.dialog,Uitableview,我需要在某一行旁边加一个复选框,但是当使用这个覆盖时,我当然会得到下面的警告。在MonoTouch.Dialog中的何处启用检查 public override UITableViewCellAccessory AccessoryForRow (UITableView tableView, NSIndexPath indexPath) { return UITableViewCellAccessory.Checkmark; (For a row of course, simpl
public override UITableViewCellAccessory AccessoryForRow (UITableView tableView, NSIndexPath indexPath)
{
return UITableViewCellAccessory.Checkmark; (For a row of course, simplified here)
}
警告:由于tableView:accessoryTypeForRowWithIndexPath:in的委托实现而使用旧单元格布局,请删除此方法的实现,并设置单元格属性accessoryType和/或editingAccessoryType以移动到新的单元格布局行为。此方法已被弃用,相反,如果需要使用它,则需要通过设置其上的AccessoryType和AccessoryView属性来相应地配置UITableViewCells 只需创建一个实现所需行为的新元素类,查看我最近关于建筑元素模式的博客:
一如既往,感谢您对Monotouch社区的支持。