Reproducing Popular iOS Controls - Part 31: | Ray Wenderlich Videos

Hi! Yes that’s absolutely possible, but it gets tricky with how you handle touches. You want to make sure that the if the tableView is at the top of the LocationsViewController the touches will go through to the view and not the tableView when the user is pulling down, but if they’re pulling up you want to make sure that the touches go through to the tableView.

A view can accept multiple gestures that are not mutually exclusive. There are UIGestureRecognizer delegates that can help us distinguish between two gestures, but I think in this case it’s more useful to do a hit test combines with a scrolling direction.

A response on this topic might help better understand how touches are passed with presenting/presented views: Reproducing Popular iOS Controls - Part 29: | Ray Wenderlich Videos - #6 by leamars