How to enable remote removal of UITableView along with horizontal page scrolling

In one of my applications, I have several kinds of tables inside a horizontal scroll view. In this way, the user can navigate horizontally between table views. For some reason I do not use UIPageViewController.

The problem I am facing is that I deleted the delete function on mine UITableView, but it doesn’t work when I have multiple pages in the horizontal scroll view.

Is there an elegant way to provide both functions at the same time?

+4
source share
1 answer

You can subclass UIScrollView and implement UIGestureRecognizerDelegate. Then return true in gestureRecognizer (_ :, shouldRecognizeSimultaneousWith) for the corresponding resolvers.

0
source

Source: https://habr.com/ru/post/1677662/


All Articles