public override void TouchesBegan(NSSet touches, UIEvent evt) { var touch = touches.AnyObject as UITouch; var location = touch.LocationInView (this.View); if (_frame.Contains(location)) { // Piece tapped var old = _pdvc; _pdvc = new PieceDetailViewController(_piece, _parent); _parent.NavigationController.PresentSemiModalViewController(_pdvc); if(old != null) { old.Dispose(); } } base.TouchesBegan(touches, evt); }
public override void TouchesBegan(NSSet touches, UIEvent evt) { var touch = touches.AnyObject as UITouch; var location = touch.LocationInView(this.View); if (_frame.Contains(location)) { // Piece tapped var old = _pdvc; _pdvc = new PieceDetailViewController(_piece, _parent); _parent.NavigationController.PresentSemiModalViewController(_pdvc); if (old != null) { old.Dispose(); } } base.TouchesBegan(touches, evt); }