swift - XLPagerTabStrip : My title label in tab bar not fully showed

标签 swift swift4 xlpagertabstrip

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

截图问题:

[![在此处输入图像描述][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]: /image/UBrLy.png

最佳答案

标 checkout 现问题,要解决此问题,您只需检查是否在项目中添加了任何标签扩展,然后尝试将其删除

关于swift - XLPagerTabStrip : My title label in tab bar not fully showed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57545886/

相关文章:

ios - XLPagerTabStrip 不填满整个宽度

swift - XLPagerTabStrip 中的 Collectionview

ios - 如何将导航栏或其他东西放在 XLPagerTabStrip 上方

swift4 - 为什么我收到错误 : problem decoding CoreML document?

ios - 来自 HTML 的 SwiftUI 属性字符串使应用程序崩溃

swift - CoreData 获取问题 : fetching entities with an array of specific days

swift - Realm :结果 <T>[索引] 无法正常工作

ios - AirPods 无法用作录音机应用程序的输入源

ios - 将 Facebook 连接到 Swift 4 中的应用委托(delegate)

json - 如何在 Swift 4 中正确解析带有根元素的 JSON 作为数组?