【问题标题】:XLPagerTabStrip : My title label in tab bar not fully showedXLPagerTabStrip:我在标签栏中的标题标签未完全显示
【发布时间】:2019-12-24 00:47:06
【问题描述】:

如何解决此标签标签未完全显示的问题?

截图问题:

[![在此处输入图片描述][1]][1]

当我在新项目中尝试时,标签栏的标签显示正常,但在我现在工作的项目中,标签栏的标签没有完全显示,请帮助我,这是什么问题

        settings.style.buttonBarBackgroundColor = .white
        settings.style.buttonBarItemBackgroundColor = .white
        settings.style.selectedBarBackgroundColor = blueInstagramColor
        settings.style.buttonBarItemFont = .boldSystemFont(ofSize: 14)
        settings.style.selectedBarHeight = 2.0
        settings.style.buttonBarMinimumLineSpacing = 0
        settings.style.buttonBarItemTitleColor = .black
        settings.style.buttonBarItemsShouldFillAvailableWidth = true
        settings.style.buttonBarLeftContentInset = 0
        settings.style.buttonBarRightContentInset = 0

        changeCurrentIndexProgressive = { [weak self] (oldCell: ButtonBarViewCell?, newCell: ButtonBarViewCell?, progressPercentage: CGFloat, changeCurrentIndex: Bool, animated: Bool) -> Void in
            guard changeCurrentIndex == true else { return }
            oldCell?.label.textColor = .black
            newCell?.label.textColor = self?.blueInstagramColor
        }

        super.viewDidLoad()

        backListener()
    }

    override func viewControllers(for pagerTabStripController: PagerTabStripViewController) -> [UIViewController] {
        let child_1 = LeaveWaitingViewController()
        let child_2 = LeaveApprovedViewController()
        let child_3 = LeaveRejectedViewController()

        return [child_1, child_2, child_3]
    }


  [1]: https://i.stack.imgur.com/UBrLy.png

【问题讨论】:

    标签: swift swift4 xlpagertabstrip


    【解决方案1】:

    标签有问题,要解决这个问题,您只需要检查您是否在项目中添加任何标签扩展,尝试删除它

    【讨论】:

      猜你喜欢
      • 2019-03-12
      • 2011-12-09
      • 1970-01-01
      • 2015-08-05
      • 1970-01-01
      • 1970-01-01
      • 2011-10-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多