Ok, I have viewA with subView viewB. Both of them have a gestureRecognizer pointer assigned to them. Now i use
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
to be able to simultaneously call both of them. Now let's say that if gestureRecognizeractivated, it calls
NSLog(@"This is...");
And if activated otherGestureRecognizer, it calls
NSLog(@"Sparta!");
The problem is that if both gestureRecognizers pointers are activated at the same time, then there is no order in which they are called, so sometimes
NSLog(@"Sparta!");
first called, and sometimes vice versa. Is there any way to make sure that
NSLog(@"This is...");
always called first?
source
share