I have a tap gesture recognizer that is supposed to call a method when a user taps on a particular area of the screen.
-(void)handleTapGesture:(UITapGestureRecognizer*)sender
{
if (self.interfaceIsiPad) {
[self.mController.view removeGestureRecognizer:sender];
CGPoint point = [sender locationInView:self.mController.view];
if (point.x<70 && point.y <50 ) {
[self dismissModalViewCtrlAndNotifyDelegateOf:willExitOk withError:nil];// crash here
return;
}
}
else {
[self.vc.view removeGestureRecognizer:sender];
}
}
The dissmissModalVieCtrl
method that crashes is a few lines of code beneath this method ... in the same class. However this always crashes with unrecognized selector sent to object
Why? I got NSString
, UIAppearenceProxy
and other class names with this crash... Why does self convert to some random class.