2

I am using XLPagerTabStrip and have a tab bar across the top of the screen. It scrolls fine left and right and works great, but for some reason it also scrolls up and down and I cannot figure out a way to top the behavior. I have read through the docs but cannot find a solution. Seems like a basic feature so I must have missed something.

Can someone help to direct me where I make a change so the the up and down scrolling is disabled, I just want left and right.

Thanks for the help.

Here is an image when app first launched: enter image description here

Here is what happens when I swipe up. enter image description here You will notice that the text is scrolling up, if I continue to swipe in that direction the text will disappear and scroll off the screen. Also, if I swipe down the text bounces much like when you pull a UITableViewDown... I do have Bounce Horizontally and Vertically un-checked as shown in the screen shot below:

enter image description here

It may be important to take note tat it also does not scroll left and right. It is almost like it is only using the view width and wrapping the items.

LilMoke
  • 3,176
  • 7
  • 48
  • 88
  • disable vertical bouncing ;) – Tomasz Czyżak Oct 19 '17 at 12:57
  • So I do have both Bounce Horizontally and Vertically off... unchecked for the view in interface builder. I do no think that has anything to do with it. I maybe should have mentioned that it does not scroll left and right either. – LilMoke Oct 19 '17 at 13:17

1 Answers1

0

In PagerTabStripViewController class viewDidLoad() method, make suer you have used the following code.

containerView.alwaysBounceHorizontal = true
containerView.alwaysBounceVertical = false
containerView.scrollsToTop = false
Ram Madhavan
  • 2,362
  • 1
  • 17
  • 20