简体   繁体   English

UITableViewCell中的UITableView传递滚动问题

[英]UITableView in UITableViewCell passing scrolling issue

UITableView内的UITableViewCell内的UITableView

Blue: is a UITableView (is scrollable, only shows 4 items of the xx items) Red: is a UITableViewCell (hides and shows blue tableview on click) Green: is a UITableView (also scrollable) 蓝色:是UITableView(可滚动,仅显示xx项目中的4个项目)红色:是UITableViewCell(单击时隐藏并显示蓝色表视图)绿色:是UITableView(也可滚动)

SITUATION: 情况:

The blue tableview is perfectly scrollable when dragging. 拖动时,蓝色的tableview可以完美滚动。 Also when I drag the cell or green table, the green table is scrollable. 同样,当我拖动单元格或绿色表格时,绿色表格也是可滚动的。 With a click on the cell I can expand or collapse the blue tableview. 通过单击单元格,我可以展开或折叠蓝色表格视图。

PROBLEM: 问题:

I want when the blue tableview is at the end or the beginning of the scroll content, the scroll movement is passed to the green tableview. 我想当蓝色表格视图位于滚动内容的末尾或开始时,滚动动作将传递给绿色表格视图。 Like it would be when you place a scrollview inside a scrollview. 就像将滚动视图放在滚动视图中一样。

How is this possible? 这怎么可能?
Anybody got already same issue? 有人已经有同样的问题吗?

我还没有尝试,但你也许可以覆盖-setContentOffset:在你的内心(蓝色)滚动视图,使其仅其内的超时调用contentArea ,否则称为-setContentOffset:在您的外(绿色)滚动视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM