[英]scroll table view inside UIScrollView in storyboard ios
I always face problems with the UIScrollView which is: 我总是会遇到UIScrollView的问题,它是:
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. 我有一个包含两个tableViewControllers的UIViewController,这些表的内容大于iphone的高度,因此我需要使用滚动条。 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). 我启用了表格的滚动,但是表格的高度很大,因此我还需要滚动所有屏幕,因此,我添加了一个UIScrollView并将这两个表格放入其中,现在我有三个滚动, (用于两个表和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. 我需要的是:允许使用全屏滚动来滚动表格,这意味着将表格的滚动与UIScrollView的滚动相结合。
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. 您不需要将UIScrollView放在UiTableViews后面,因为tableViews有自己的滚动条。 No matter how much data/cells you have in the tableView it will allow you to scroll easily. 无论tableView中有多少数据/单元格,它都将使您轻松滚动。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.