Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIScrollView behavior is different in iOS8

I have the following layout

enter image description here

So it's basically a scroll view that occupies whole screen. Content size is set to triple-width and same height. Inside the scroll view - there is container view and three table views - one per page. Only middle table view is visible initially.

This allows me to use scroll view horizontal scrolling to navigate between the tables and vertical scrolling inside the middle table.

I know that Apple doesn't really recommend putting UITableView inside UIScrollView, but in this particular case I don't know how to implement it differently, and until iOS8 everything was working fine.

UIScrollView would not recognize any vertical scrolling (since content height was equal to scroll view height) and these gestures were passed directly to UITableView.

But starting in iOS8 - this getting broken. UIScrollView would allow some vertical scrolling and basically intercept scrolling gestures sent to UITableView.

I created a simple project that works fine in iOS7 but is broken in iOS8. Anybody has any idea how to fix this problem?

Link to the project: https://dl.dropboxusercontent.com/u/6402890/TablePaging.zip

like image 573
sha Avatar asked Nov 01 '22 18:11

sha


1 Answers

I haven't been able to solve this and as I mentioned in comments had to re-write logic using built-in UIPageViewController class.

like image 86
sha Avatar answered Nov 15 '22 04:11

sha