简体   繁体   中英

How to disable user swiping in page view but still enable interaction with the subviews in the page view. e.x. button

I want to disable users being able to swipe through page view controllers in swift but every method I try it also disable's any interaction with the subviews in the page view controller such as a button and being able to interact with a table view controller.

How would I approach this project.

尝试这个:

self.navigationController!.interactivePopGestureRecognizer!.enabled = false

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