Questions tagged [xlpagertabstrip]

Use this tag for question about the XLPagerTabStrip component library for switching among a collection of view controllers using tabs.

It is the iOS version of the Android PagerTabStrip. XLPagerTabStrip is a Container View Controller that allows us to switch easily among a collection of view controllers. Pan gesture can be used to move on to next or previous view controller. It shows a interactive indicator of the current, previous, next child view controllers.

For more info see the github project

98 questions
6
votes
1 answer

Cannot find interface declaration in myproject-swift.h

I' m using XLPagerTabStrip pod in my project, i have a bridging header for other purposes to integrate from swift to objective c myproject-swift.h i cant build the project and this error always pops: Cannot find interface declaration for …
Sanad Barjawi
  • 460
  • 2
  • 14
5
votes
1 answer

Swift: How to show child view controllers via storyboard rather than programmatically using XLPagerTabStrip

I have been following the XLpagerTabStrip cocoapods extension to set up a tab bar at the top of my view controller (https://github.com/xmartlabs/XLPagerTabStrip). I am implementing the ButtonBarPagerTabStripViewController and have followed the steps…
3
votes
0 answers

smooth transition between 2 scrollviews

As you can see below I have a ViewController(lets call it viewController A) that contains a container view with a ViewController inside(lets call that ViewController B). So whats happening below is when you scroll up ViewController A's scrollview…
j.iese
  • 161
  • 1
  • 10
3
votes
1 answer

XLPagerTabStrip: doesn't respect the status bar

I'm having difficulty applying XLPagerTabStrip, it's not about the coding itself, but on your screen organization, a few days ago I've been researching but I just circled, used this framework before, I had no difficulties since the code in my…
Tmaximo
  • 33
  • 8
3
votes
3 answers

Dynamic number of ChildViewControllers for XLPagerTabStrip

I am using XLPagerTabStrip to create a category based reading app in Swift 4. I learnt static number of ViewControllers can be easily created using the following function. override func viewControllers(for pagerTabStripController:…
amagain
  • 1,936
  • 2
  • 16
  • 32
3
votes
4 answers

XLPagerTabStrip doesn't fill full width

Problem I'm working on an IOS Application. I use XLPagerTabStrip Library to create Tabs like in Android eg. YouTube. Everything works fine but i have a problem with the Tabs. I have 3 Tabs but they wont fill out the whole width and they are…
david-schor
  • 260
  • 1
  • 11
2
votes
1 answer

Continuous scrolling between tableView and scrollView

I have a parent scroll view with a uiview header and table view. I am trying to have a similar behavior to Twitter or Instagram profile page. You start scrolling the parent scroll view and as soon as the header is gone there is a continuous…
joethemow
  • 1,243
  • 2
  • 16
  • 30
2
votes
2 answers

Call function from child to parent in Swift

I am using xlpagertabstrip and I have a parent view controller which has two children (child1, child2). In my parent view controller, I show a UIActivityViewIndicator but I want to know how to hide that indicator in my child1. This is my…
Israel
  • 121
  • 8
2
votes
1 answer

How to update indicator info for XLPagerTabStrip in iOS?

I want to update my indicator info on some events happening in the child view controllers. How can we achieve this?
Sayalee Pote
  • 450
  • 4
  • 18
2
votes
0 answers

XLPagerTabStrip not swiping to the next vc

I don't know why it is not swiping to the next viewController. Instead it swipes to a blank page and the tab slider also doesn't move. But when i click on the tabs it works fine and slides to the next viewController. Really not sure why its like…
j.iese
  • 161
  • 1
  • 10
2
votes
0 answers

XlpagerStrip Spacing Between tabbar in swift

I am currently implementing the XLPagerTabStrip (https://github.com/xmartlabs/XLPagerTabStrip) which effectively creates a tab bar at the top of the view controller.I make a containerVC class ContainerVC: ButtonBarPagerTabStripViewController { let…
Mike Shaen
  • 21
  • 4
2
votes
1 answer

No such module 'XLPagerTabStrip'

i use tutorial https://medium.com/michaeladeyeri/how-to-implement-android-like-tab-layouts-in-ios-using-swift-3-578516c3aa9 and get error No such module 'XLPagerTabStrip' My Podfile `# Uncomment the next line to define a global platform for your…
Jussia
  • 165
  • 11
2
votes
3 answers

How to fix "does not conform to protocol" when in it does

I'm trying to implement git project XLPagerTabStrip. According to the project, every controller has to: Every view controller provided by PagerTabStripDataSource's viewControllers(for:) method must conform to InfoProvider But the following code…
David Seek
  • 15,533
  • 14
  • 94
  • 125
2
votes
1 answer

How to disable swipe up and swipe down

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…
LilMoke
  • 2,812
  • 6
  • 44
  • 80
2
votes
6 answers

XLPagerTabStrip select what view controller will be shown first

I'm using XLPagerTabStrip to switch among a collection of view controllers. I have three view controllers and I would like that middle view controller is shown by default as first. I could use let parentViewController = self.parent! as!…
user3593157
  • 47
  • 1
  • 9
1
2 3 4 5 6 7