简体   繁体   English

在NIPagingScrollView上禁用滚动

[英]Disabling Scrolling on NIPagingScrollView

i am using Nimbus kit for my app. 我正在为我的应用程序使用Nimbus套件。 I have different Page Scroll Views. 我有不同的页面滚动视图。 Each Page have a button. 每个页面都有一个按钮。 when i click on the button i need to go to next page. 当我单击按钮时,我需要转到下一页。 for that i am using [self.pagingScrollView moveToNextAnimated:YES]; 为此,我正在使用[self.pagingScrollView moveToNextAnimated:YES]; . It works fine. 工作正常。 But i need to disable to horizontal scrolling of a page. 但是我需要禁用页面的水平滚动。 NIPagingScrollView is a subclass of UIView, so i can't use a scrollEnabled property. NIPagingScrollView是UIView的子类,因此我不能使用scrollEnabled属性。 How can i dsiable scrolling on NIPagingScrollView. 我怎样才能在NIPagingScrollView上滚动。 I don't want a user to swipe next/previous of the screen. 我不希望用户在屏幕的上一个/下一个上滑动。

Thanks, 谢谢,

您可以通过pagingScrollView上的pagingScrollView属性访问分页滚动视图。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM