我正在尝试在Xamarin for iOS中添加UIScreenEdgePanGesture。但它崩溃了。我正在使用以下代码
UIScreenEdgePanGestureRecognizer rightEdgeGesture = new UIScreenEdgePanGestureRecognizer (HandleRightEdgeGesture);
rightEdgeGesture.Edges = UIRectEdge.Right;
View.AddGestureRecognizer (rightEdgeGesture);
并处理行动
public void HandleRightEdgeGesture(UIScreenEdgeGestureRecognizer recognizer){
Console.WriteLine("Screen to right");
}
如果我写错了语法,请帮助我。