[英]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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.