I always face problems with the UIScrollView which is:

I have a UIViewController that contains two tableViewControllers, the contents of these tables are bigger than the height of the iphone, so I need to use a scroller. I enable the scroll of the table, but the height of the table is big, so I need to scroll all the screen also, for this reason, I added a UIScrollView and I put these two tables inside, for now I have three scrolls, (for the two tables and for the UIScrollView).

What I need is: to allow scroll the tables with the scroll of whole screen, it means to combine the scroll of the table with the scroll of the UIScrollView.

enter image description here

Is there any method to combine the scrollers??

有帮助吗?

解决方案

you dont need to put a UIScrollView behind the UiTableViews as the tableViews have their own scrollers. No matter how much data/cells you have in the tableView it will allow you to scroll easily.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top