我们可以在RowSelected事件中处理一些业务判断,比如手动单击UITableView的行和动态设定选中行是否一致:
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
//不是重复选择才执行事件
bool tag = tableView.IndexPathForSelectedRow.Row != indexPath.Row;
if (currentselect != indexPath.Row && tag && this.OnSelectList != null) {
currentselect = indexPath.Row; //重新定位选中行标记
this.OnSelectList (this, new SelectEventArgs (listarr [indexPath.Row, 1], currentselect));
}
}原文:http://blog.csdn.net/joyhen/article/details/19081217