Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin中的UIScreenEdgePanGesture崩溃,错误为:严重:Stacktrace:_Xamarin - Fatal编程技术网

Xamarin中的UIScreenEdgePanGesture崩溃,错误为:严重:Stacktrace:

Xamarin中的UIScreenEdgePanGesture崩溃,错误为:严重:Stacktrace:,xamarin,Xamarin,我正在尝试为iOS添加Xamarin中的UIScreenEdgePanGesture。但它崩溃了。我正在使用以下代码 UIScreenEdgePanGestureRecognizer rightEdgeGesture = new UIScreenEdgePanGestureRecognizer (HandleRightEdgeGesture); rightEdgeGesture.Edges = UIRectEdge.Right;

我正在尝试为iOS添加Xamarin中的UIScreenEdgePanGesture。但它崩溃了。我正在使用以下代码

UIScreenEdgePanGestureRecognizer rightEdgeGesture = new UIScreenEdgePanGestureRecognizer (HandleRightEdgeGesture);          
                rightEdgeGesture.Edges = UIRectEdge.Right;
                View.AddGestureRecognizer (rightEdgeGesture);
还要处理行动

public void HandleRightEdgeGesture(UIScreenEdgeGestureRecognizer recognizer){
        Console.WriteLine("Screen to right");
     }
请帮助我,如果我写任何错误的语法