public override void UnregisterEvents(UIView view) { if (_touchRecognizer != null) { // Clean up the TouchRecognizer object _touchRecognizer.Detach(); // Remove the TouchRecognizer from the UIView view.RemoveGestureRecognizer(_touchRecognizer); } }
protected override void OnDetached() { if (touchRecognizer != null) { // Clean up the TouchRecognizer object touchRecognizer.Detach(); // Remove the TouchRecognizer from the UIView view.RemoveGestureRecognizer(touchRecognizer); } }