【问题标题】:XLPagerTabStrip black spaceXLPagerTabStrip 黑色空间
【发布时间】:2018-03-07 12:48:26
【问题描述】:

我正在使用 XLPagerTabStrip 在 iosgetting black space like this 中获取 android tabtool,但是当我滚动端点视图控制器时,我在视图和屏幕之间出现了黑色空间,为什么?以及如何解决?

【问题讨论】:

    标签: ios iphone xlpagertabstrip


    【解决方案1】:
    class MyPagerTabStripName: ButtonBarPagerTabStripViewController {
        super.viewDidLoad()
        ...
        self.containerView.bounces = false // add this line to disable bounce
    }
    

    或者如果你想保持反弹效果,你可以设置视图的backgroundColor,就像在你的图像中,你可以将backgroundColor更改为白色。

    【讨论】: