Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 滑动时停止滚动UIPageViewController_Ios_Swift_Uipageviewcontroller - Fatal编程技术网

Ios 滑动时停止滚动UIPageViewController

Ios 滑动时停止滚动UIPageViewController,ios,swift,uipageviewcontroller,Ios,Swift,Uipageviewcontroller,我曾经使用过UIPageViewController现在我在滑动屏幕时会滚动,但我想在单击按钮时进行滚动。当我在屏幕上水平滑动时,它不会滚动 我希望解决以下问题: 1。如何在水平滑动屏幕时停止滚动 事实上,我已经看到了很多解决方案,但我不明白,所以我要问这个问题。只要将您的UIPageViewControllerdataSource=nil,然后滚动将停止。问题不清楚。添加屏幕。您的问题不清楚。请重新重新设置。@Daljeet如何在UIPageViewController中停止滚动?@Dalje

我曾经使用过UIPageViewController现在我在滑动屏幕时会滚动,但我想在单击按钮时进行滚动。当我在屏幕上水平滑动时,它不会滚动

我希望解决以下问题:

1。如何在水平滑动屏幕时停止滚动


事实上,我已经看到了很多解决方案,但我不明白,所以我要问这个问题。

只要将您的
UIPageViewController
dataSource=nil
,然后滚动将停止。

问题不清楚。添加屏幕。您的问题不清楚。请重新重新设置。@Daljeet如何在UIPageViewController中停止滚动?@Daljeet现在找到我了?可能是重复的