简体   繁体   中英

UIPageViewController Gesture overriding my UITableView

I'm using a UIPageViewController to swipe views vertically. I have 3 different views, the on on the middle holds a UITableViewController.

If I use a mapkit view on te middle, the mapkit overrides all UIPageViewController touches, and works perfectly. The same thing doesnt happen with tables. Sometimes touch scrolls table, something it scrolls the pageviewcontroller.

Anyone know a simple way to bring the tableview gestures to top, overriding the pageview touch?

(I did setup a touch handled and check if touch is inside table, overriding pageview touch this way, but its slow and not a100% solution)

(mapkit view behaviour would be perfect) thanks!

我的Mac现在不在手边,我无法测试,但你可以尝试在属性检查器中使用两个标志:“延迟内容触摸”和“可取消的内容触摸”

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