googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

Crash in [GVRWidgetView gestureRecognizerShouldBegin:] #293

Closed ghking closed 6 years ago

ghking commented 6 years ago

I frequently get this crash originating in [GVRWidgetView gestureRecognizerShouldBegin:]:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITapGestureRecognizer velocityInView:]: unrecognized selector sent to instance 0x1d43e8c00'

velocityInView is a method on UIPanGestureRecognizer, not on UITapGestureRecognizer. It seems like there's some incorrect casting or something happening there.

Thanks!

sanjayc77 commented 6 years ago

GVRView API (that includes GVRWidgetView) is deprecated. Please switch to GVRKit. It is also available as a Cocoapod. The samples are also updated and include support for panning (and tapping).