let's say I want to create the next gesture recognizer
UITapGestureRecognizer * c1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector([[MyGestureRecognizer ViewWasClicked1:]];
but I want to call the selector in a separate class. I have a method:
+ (void)ViewWasClicked1:(UITapGestureRecognizer *)sender { NSLog(@"click1 mouse down"); }
in the class MyGestureRecognizer. Is it possible that I'm looking for?
source share