简体   繁体   中英

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)

SITUATION:

The blue tableview is perfectly scrollable when dragging. 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:在您的外(绿色)滚动视图。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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