stefanceriu / SCPageViewController

Just like UIPageViewController but better.. :)
MIT License
352 stars 70 forks source link

Passing through gestures #32

Closed H2OBorne closed 8 years ago

H2OBorne commented 8 years ago

Is there a recommended way to pass gestures through to an UIScrollView embedded within one of the UIViewControllers presented by the SCPageViewController? I would ideally like to handle viewDidScrollView: for the presented UIScrollView in one of the presented UIViewControllers.

I note that UICollectionViews function just fine.

I'm assuming I've totally overlooked something.

Thanks!

stefanceriu commented 8 years ago

Hey, as far as I know there's nothing special you need to do. I managed to pass touches to an embedded scroll view just by adding it to the hierarchy and settings its content size to something reasonable. Here's how it looks: embeddedscrollview

H2OBorne commented 8 years ago

Oh sweet. I'll check again. I was having trouble with an UIScrollView filling the entire page, but this is the same concept. Surely something dumb has happened.

Thanks :)

stefanceriu commented 8 years ago

No problem, let me know how it goes.