UIScrollView inside UIScrollView inside UIScrollView

Sorry for the weird name, but well, that is exactly what I need. I know that this can be done because I have seen other applications do this.

Basically, my application has one big scroll view with paging enabled, which contains some nested scrolls in it, and it works. The problem is that I need to add another scroll view inside one of the nested scroll views. I did it, but when I try to hold it, sometimes the parent scroll gets a touch. And sometimes it works. I tried canCancelContentTouches and delaysContentTouches , but couldn't get it to work. Has anyone tried this? Thank you

+4
source share
1 answer

The way this will work - the top scroll view should distinguish between the strokes used to scroll on it and the touches that should be sent to the internal view. And since wipes can be used on both scrolls, the top one cannot figure out exactly what the user is trying to do.

0
source

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


All Articles