I have a custom cell where I have two textfields and one label. I have added a TapGestuRecognizer
to capture user tap event on the label. However, I wonder how could I able to detect the index of CustomCell where label selected?
var tapGesture = new UITapGestureRecognizer (Tap);
myLabel.AddGestureRecognizer (tapGesture);
myLabel.UserInteractionEnabled = true;
public void Tap(UITapGestureRecognizer r)
{
var vc = new myViewController (this);
var nc = new NavigationController (vc);
nc.PreferredContentSize = new System.Drawing.SizeF (200, 300);
popupoverController = new UIPopoverController (nc);
popupoverController.PresentFromRect (myLabel.Bounds, myLabel, UIPopoverArrowDirection.Any, true);
}