objective c - UITapGestureRecognizer causes app to crash -
The UITapGestureRecognizer crashes because the application crashes Swipe is not the cause of any problems made at very short distances, but You can show those errors made at a long stretch:
- [UITapRecognizer name]: Non-accredited selector example sent for example 0x17ee27c0
Where 0x17ee27c0 is a random value
*** Expected exception 'NSInvalidArgumentException', due to reason the application ends: '- [UITapRe Cognizer name]:. Sent to unrecognized selector example throw 0x17ee27c0 '*** First call stack: (0x2cb7dc1f 0x3a328c8b 0x2cb83039 0x2cb80f57 0x2cab2df8 0x2feee1c1 0x2d7d01cf 0x3024822d 0x300671ad 0x30066bcd 0x3003d3dd 0x302b0c29 0x3003be39 0x2cb44377 0x2cb43787 0x2cb41ded 0x2ca90211 0x2ca90023 0x33e890a9 0x3009c1d1 0xdca87 0x3a8a8aaf) libc ++ abi.dylib: Type NSException ending with no exceptions
UITapRecognizer * (0x17ee27c0) tape is GestureRecognizer._imp
This is happening on many devices running iOS 8.1 . The source has been compiled at Xcode 6
How do I declare a UITapGestureRecognizer here?
UITapGestureRecognizer * tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget: Auto Actions: @selector (viewTapped :)]; [MyView addGestureRecognizer: Tap gastrorecosizer];
And here's the method:
- (zero) viewTapped: (UITapGestureRecognizer *) this {}
The UITapGestureRecognizer is placed on a SKView;
Here is the stack trace:
I have one in one of my SpriteKit games The only issue was that, when you are using gestures during the transition between scenes, I get it for gestureRecognizer.enable
property () code
Comments
Post a Comment