Skip to content

双层嵌套的Header内部包含有一个横向划动的ScrollView时, 如何使列表翻页不响应? #569

@Ann-iOS

Description

@Ann-iOS
Image

如上图的场景中,在中间路飞的 HeaderView 区域 添加一个水平滑动的ScrollView,滑动ScrollView时, 会连带第一层的pagingView 一起翻页, 如何才能在滑动 headerView中ScrollView区域时, 保持列表不翻页?

目前提供的代理方法:
func mainTableViewGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool
只支持左右和上下的冲突,在该代理方法内判断 otherGestureRecognizer.view 返回 false 依然无效。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions