如何解决此选项卡标签未完全显示的问题?
截图问题:
[![在此处输入图像描述][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/