Home Simultaneous gestures across overlapping sibling views
Reply: 0

Simultaneous gestures across overlapping sibling views

user915
1#
user915 Published in May 27, 2018, 1:00 am

I'm having trouble accepting two gestures simultaneously across my sibling views. The view structure is as follows.

Superview
 |
 |--> ChildView1 (UITableView)
 |
 |--> ChildView2 (UIView).. Partially overlaps ChildView1

When I do a pan gesture on ChildView2, I would like that to pass through to ChildView1 so that the UITableView scrolls properly. However, when I do a LongPress gesture on ChildView2, I would like that to be properly recognized within ChildView2.

The closest question (and answer) I've seen is this. However, unlike that question, where ChildView1 has to handle the passed gesture, I would like the UITableView to handle the gesture and scroll as if it was scrolled directly on the view. Is that possible?

Thanks for any insights.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.369671 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO