Tapping on a list view crashes in iOS while menu item is visible in a cell

In my iOS application written using Xamarin.Forms, Everything works like a charm except for the following:

I have a menu item in my listview cell. I can scroll through the list view or open any list item without any problem. But when i swipe left on a cell in list view to view the menu item and tap on any other cell in the list view, the application crashes and throws the following error:

System.ArgumentNullException
Value cannot be null.
Parameter name: gesture recognizer

Stacktrace:>>>>

at UIKit.UIView.RemoveGestureRecognizer (UIKit.UIGestureRecognizer gestureRecognizer) [0x00041] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/build/ios/native/UIKit/UIView.g.cs:1411
at Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate.ClearCloserRecognizer (UIKit.UIScrollView scrollView) [0x00010] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\ContextScrollViewDelegate.cs:231
at Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate+<>c__DisplayClass24_0.b__0 () [0x00046] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\ContextScrollViewDelegate.cs:174
at UIKit.UIGestureRecognizer+ParameterlessDispatch.Activated () [0x00000] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/UIKit/UIGestureRecognizer.cs:71
at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr (intptr,intptr,intptr)
at UIKit.UIView.RemoveGestureRecognizer (UIKit.UIGestureRecognizer gestureRecognizer) [0x00021] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/build/ios/native/UIKit/UIView.g.cs:1409
at Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate.ClearCloserRecognizer (UIKit.UIScrollView scrollView) [0x00032] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\ContextScrollViewDelegate.cs:235
at Xamarin.Forms.Platform.iOS.ContextScrollViewDelegate+<>c__DisplayClass24_0.b__0 () [0x00046] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\ContextScrollViewDelegate.cs:174
at UIKit.UIGestureRecognizer+ParameterlessDispatch.Activated () [0x00000] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/UIKit/UIGestureRecognizer.cs:71
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/UIKit/UIApplication.cs:63
at Bee.Database.Model.Application.Main (System.String[] args) [0x00008] in /Users/development/Projects/iOS/Bee/iOS/Main.cs:17

Best Answer

Answers

Sign In or Register to comment.