Xlpagertabstrip: Blank tabs on iOS 10

Created on 3 Dec 2017  路  9Comments  路  Source: xmartlabs/XLPagerTabStrip

I'm using the latest version
pod 'XLPagerTabStrip', '~> 8.0'

On iOS v 11 it shows correct but on version 10 it does not show the strip, via testing I have managed to change the backound colour meaning that the space for the tab is left as supposed to and I can swipe left right to get other tabs but the title and related styles are not visible. I will post a screenshot for
v11
screen shot 2017-12-03 at 13 58 46

and v10,
screen shot 2017-12-03 at 13 57 49

The way I instantiate the classes is via storyboad as follows
let child_1 = self.storyboard!.instantiateViewController(withIdentifier: "storyboardid")

Most helpful comment

I ran into the same problem on iOS10, and found a workaround on ButtonBarPagerTabStripViewController's viewDidLoad() (before calling super.viewDidLoad());

        if #available(iOS 11.0, *) {
            // nothing to do.
        } else {
            automaticallyAdjustsScrollViewInsets = false
        }

All 9 comments

To any one with same issue it seems the navigation bar so had to make a way to move the tab bar
edgesForExtendedLayout = []
//move tab
buttonBarView.frame.origin.y = buttonBarView.frame.origin.y + 30

I ran into the same problem on iOS10, and found a workaround on ButtonBarPagerTabStripViewController's viewDidLoad() (before calling super.viewDidLoad());

        if #available(iOS 11.0, *) {
            // nothing to do.
        } else {
            automaticallyAdjustsScrollViewInsets = false
        }

@hackugyo your workaround works good for me, thanks!

@hackugyo Thank's

seems this issue is not yet solved not even with those workarounds that used to work

I had same Problem. Thank's

I had same problem too. Thank's!!

I ran into the same problem on iOS10, and found a workaround on ButtonBarPagerTabStripViewController's viewDidLoad() (before calling super.viewDidLoad());

        if #available(iOS 11.0, *) {
            // nothing to do.
        } else {
            automaticallyAdjustsScrollViewInsets = false
        }

This works good, thank you.

Some issue and not solved with the workarounds.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luminkhant picture luminkhant  路  4Comments

Ariavm95 picture Ariavm95  路  4Comments

alexanderkhitev picture alexanderkhitev  路  4Comments

fenixsolorzano picture fenixsolorzano  路  4Comments

Emasoft picture Emasoft  路  5Comments