Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Swipe a grid to dismiss it or move it...
posted

I'm trying to figure out if there's a way to attach a swipe to a grid (that does not have horizontal scrolling) so that I can use that action to slide the grid off screen if they swipe left.

Parents
No Data
Reply
  • 1935
    Verified Answer
    Offline posted

    Dooh... apparently it was much easier than I realized...

                UISwipeGestureRecognizer *swipeLeftRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeLeftRecognizer:)];

                [swipeLeftRecognizer setDirection:UISwipeGestureRecognizerDirectionLeft];

                [gridView addGestureRecognizer:swipeLeftRecognizer];

Children
No Data