|
---- self.view
|
-------- UIView (A)
|
------------ UITableView
|
---------------- UIView (B)
|
I've this hierarchy, added UISwipeGestureRecognizer
on UIView
(B), I've given all four directions for the swipe gesture, however it could only detects left and right directions, when I tried for up and down side swipe UITableView
scrolls, what should I do to recognize swipe instead of doing table scroll?
I did the following (individually) after googled, but it wont work.
swipeUp.cancelsTouchesInView = NO; //swipeUp is UISwipeGestureRecognizer
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return YES;
}
I can't disable/enable table scrolling as there're other views to show.