1
我正在使用Carbon套件用于我的应用程序。我正在设置carbonTabSwipeScrollView
的背景颜色,但它显示的效果是translucent
,所以它与背景颜色混合在一起,而没有显示它的正确颜色。因为我一直以来最后2天停留在这个问题上,并试图所有可能的方式,但没有成功禁用CarbonKit半透明效果
let items = ["item 1", "item 2"]
let carbonTabSwipeNavigation = CarbonTabSwipeNavigation(items: items, delegate: self)
carbonTabSwipeNavigation.insert(intoRootViewController: self, andTargetView: self.targetView)
//Set Colors//
carbonTabSwipeNavigation.setIndicatorColor(UIColor.clear)
carbonTabSwipeNavigation.setSelectedColor(UIColor.blue, font: UIFont.systemFont(ofSize: 13))
carbonTabSwipeNavigation.setNormalColor(UIColor.lightGray, font: UIFont.systemFont(ofSize: 13))
carbonTabSwipeNavigation.carbonSegmentedControl?.backgroundColor = UIColor.yellow
carbonTabSwipeNavigation.toolbar.barTintColor = UIColor.clear
carbonTabSwipeNavigation.toolbar.isTranslucent = false
carbonTabSwipeNavigation.carbonTabSwipeScrollView.backgroundColor = UIColor.black
carbonTabSwipeNavigation.carbonTabSwipeScrollView.bounces = false
任何帮助将不胜感激。
在此先感谢。
按照你的建议,但我已经尝试仍然没有得到正确的结果。请检查对该问题的编辑。 –
你能告诉我截图你得到了什么,你想怎么样? –