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
2
votes
1 answer

XLPagerTabStrip: Title label doesn't show on pager tab

I'd like to create pager tab like InstagramExample of XLPagerTabStrip and I follow all layout and coding to get the same. After adding everything I cannot see the title label on pager tab but I can swipe views as much as I add in array. Could anyone…
zavrina
  • 185
  • 2
  • 14
2
votes
2 answers

TopPadding occurs when using XLPagerTabStrip and UITableView

SubViewController (a child of ViewController and IndicatorInfoProvider) is added using MainViewController (a child of ButtonBarPagerTabStripViewController) with NavigationBar added. Padding does not occur even if you tap tabbutton, padding occurs on…
Tagorimo
  • 21
  • 3
2
votes
1 answer

XLPagerTabStrip to add Image and label in IOs Swift View Pager

I am making an app with View pager app, I am using XLPagerTabStrip library for making it. It works fine with Title in the Viewpager item. I want to add Icon and corresponding Label in it.
2
votes
3 answers

Switch child viewcontrollers programmatically : XLPagerTabStrip

I have been using the XLPagerTabStrip to effectively create a tab bar at the top of my view controller, with multiple child view controllers displayed within it. Lets call Home as parent controller which extends ButtonBarPagerTabStripViewController.…
ASP
  • 1,954
  • 3
  • 17
  • 30
2
votes
2 answers

xlpagertabstrip cannot hook up containerView

I feel like this is a really daft problem, but I cannot seem to hook my UIScrollView up to the containerView property. I have a UIViewController in the storyboard, whose class is MyCustomClass. MyCustomerClass inherits from…
Welton122
  • 1,051
  • 2
  • 12
  • 26
2
votes
1 answer

Swift Swipe Navigation Table Views

I'm trying to do a swipe navigation between different tableViewControllers in swift. I managed to do it with viewControllers with the following code : import UIKit class ViewController: UIViewController { @IBOutlet weak var scrollView:…
TheoF
  • 745
  • 2
  • 7
  • 15
1
vote
1 answer

Variable 'self' was written to, but never read warning message when XLPagerTabStrip is used

I am using the cocoapod XLPagerTabStrip to implement PagerTabStrip in my iOS app. I get the below warning message while building or running the app Variable 'self' was written to, but never read This warning occurs from the following closure code…
JoBoy7
  • 13
  • 3
1
vote
0 answers

When pager loads for the first time view in first childViewController leaves space from both side for the first time

when XLPagerTabStrip loads view in the first child view controller leave space from both sides but if I switched tabs then it acquires the screen as I wanted. here is the screenshot of a simulator for understanding: And after switching tabs it…
NickCoder
  • 1,232
  • 1
  • 15
  • 29
1
vote
1 answer

How to refresh parentViewContoller from childViewContoller in swift?

I used XLPagerTabStrip for TabBar Refer. Now I am doing some functionality in childViewController based upon that I need to update that value to UILabel in parent ViewController. For Example: I am getting the values in childviewcontroller now I…
KAVIYA VENKAT
  • 287
  • 2
  • 15
1
vote
2 answers

Sharing data between tabs using XLPagerTabStrip

I'm using XLPagerTabStrip - https://github.com/xmartlabs/XLPagerTabStrip to have two tabs which share the same dataset. For the data set, in my main view (which hosts two tabs) I have a call to Firebase to get the data. Once received I make a…
sukh
  • 308
  • 2
  • 15
1
vote
1 answer

adding child change the button bar tab from RTL to LTR

am using https://github.com/xmartlabs/XLPagerTabStrip in my app .. and its work just fine as i need .. i had 5 children in the buttonbar .. and my app is in Arabic RTL language ... the tab will be like this: which is the right way to be .. i have…
Lama
  • 225
  • 3
  • 15
1
vote
0 answers

XLPagerTabStrip doesn't cover the full width

Hi so basically my xlpagertabstrip doesn't cover the full width especially if the width goes to the ipad size. I already tried different methods from the past problems with the same issue to no avail such as changing the buttonbarviewcontroller's…
Jov
  • 31
  • 1
  • 7
1
vote
0 answers

Display button only when specific child is selected

I'm using XLPagerTabStrip in my app to display three different children.. this is working perfectly. import UIKit import XLPagerTabStrip class AccountViewController: ButtonBarPagerTabStripViewController { override func viewDidLoad() { …
mrs.tat
  • 277
  • 3
  • 12
1
vote
1 answer

Expose indexPath to configureCell

Currently configureCell only has access to the cell and IndicatorInfo. In my use case, I would like to know the indexPath of the cell so that I know which cell I am configuring and customize accordingly. Specifically we want to very first cell…
Fabe Tob
  • 11
  • 2
1
vote
2 answers

XLPagerTabStrip - How to add UISearchController

I am using this library: https://github.com/xmartlabs/XLPagerTabStrip My problem is that I can't resolve an issue with adding a UISearchController for one of ButtonBarPagerTabStripViewController child viewController - UITableViewController. The…
piotr_ch
  • 458
  • 2
  • 5
  • 17