【问题标题】:Can Anyone told me how to remove dark Grey bottom side border in CarbonKit谁能告诉我如何删除 CarbonKit 中的深灰色底边边框
【发布时间】:2018-08-13 10:27:05
【问题描述】:

这是我在我看来添加碳套件的代码。

    let arrMenuName = ["Signal","Buy or Not"]
    carbonSwipe.delegate = self
    carbonSwipe = CarbonTabSwipeNavigation(items: arrMenuName as [AnyObject], delegate: self)
    carbonSwipe.carbonTabSwipeScrollView.isScrollEnabled = true
    carbonSwipe.insert(intoRootViewController: self, andTargetView: mainvw)
    carbonSwipe.carbonSegmentedControl?.backgroundColor = UIColor.clear;
    carbonSwipe.carbonSegmentedControl?.setWidth(UIScreen.main.bounds.size.width / 2, forSegmentAt: 0)
    carbonSwipe.carbonSegmentedControl?.setWidth(UIScreen.main.bounds.size.width / 2, forSegmentAt: 1)
    carbonSwipe.setTabBarHeight(48)
    carbonSwipe.setNormalColor(UIColor.black, font: UIFont.init(name: "SanFranciscoDisplay-Regular", size: 15)!)
    carbonSwipe.setSelectedColor(UIColor.red, font: UIFont.init(name: "SanFranciscoDisplay-Bold", size: 15)!)

    carbonSwipe.setIndicatorHeight(2)
    carbonSwipe.setIndicatorColor(UIColor.red)

任何建议都将不胜感激。谢谢。

【问题讨论】:

标签: ios swift4 uisegmentedcontrol carbonkit


【解决方案1】:

试着写下一行。

carbonSwipe.toolbar.clipsToBounds = true

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多