Xamarin中的UIScreenEdgePanGesture崩溃时发生错误:严重:Stacktrace:

时间:2015-10-07 07:27:52

标签: xamarin

我正在尝试在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");
     }

如果我写错了语法,请帮助我。

0 个答案:

没有答案