Xlpagertabstrip: How to disable left right swipe?

Created on 29 Sep 2016  路  4Comments  路  Source: xmartlabs/XLPagerTabStrip

Before submitting issues ...

  • Make sure you are using XLPagerTabStrip latest release or master branch version.
  • Make sure your Xcode version is the latest stable one.
  • Check if the issue was already reported or fixed. We add labels to each issue in order to easily find related issues. If you found a match add a brief comment "I have the same problem" or "+1".

When submitting issues, please provide the following information to help maintainers to fix the problem faster:

  • Environment: XLPagerTabStrip, Xcode and iOS version you are using.
  • In case of reporting errors, provide Xcode console output of stack trace or code compilation error.
  • Any other additional detail such as example code that you think it would be useful to understand, reproduce and solve the problem.

Most helpful comment

If in the ButtonBarPagerTabStripViewController you set containerView.scrollEnabled = false, it will scroll vertically but won't do it horizontally.

All 4 comments

If in the ButtonBarPagerTabStripViewController you set containerView.scrollEnabled = false, it will scroll vertically but won't do it horizontally.

I was getting error because containerView was nil in the ViewDidLoad(), in order to over come this I have moved "containerView.isScrollEnabled = false" to my api calling thread, so now its working.

I am also having same issue, I have added containerView from storyboard.

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
         containerView.isScrollEnabled = false
    }
Was this page helpful?
0 / 5 - 0 ratings