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.