我在我的行选择方法中添加了一个打印语句,但它永远不会被调用:
public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
Console.WriteLine ("Row selected");
}
我的单元格有一个覆盖整个单元格的 UIImageView
作为背景图像。这会导致该行无法识别触摸吗?
最佳答案
不得不打电话:
MyTableView.AllowsSelection = true;
它必须默认设置为 false
。
关于c# - iOS Row Selected 未被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25829027/