ios - 谁能告诉我如何删除 CarbonKit 中的深灰色底边边框
问题描述
这是我在我看来添加碳套件的代码。
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)
任何建议都会不胜感激。谢谢你。
解决方案
尝试写下一行。
carbonSwipe.toolbar.clipsToBounds = true
推荐阅读
- mysql - 2个外键引用相同的主键laraavel
- ios - 为什么点击后按钮会发生变化?
- javascript - 下拉菜单在 jquery ui 模式对话框中被切断
- mongodb - 在 MGO 中为每个帖子获得所有喜欢的最改进的方法是什么?
- python - Python:使用 pandas 以变量作为文件路径的 Excel 文件(xlsx)导出
- javascript - 如何在纯 JavaScript 中调用 react 部署的组件(如部分视图)
- java - 如何从Java列表中删除重复项
- sql - 如何合并 SQLite 中每个表中的所有公共列
- ios - 将 react-native 更新到 0.66.1 并将 xcode 更新到 13.1 版后,应用程序停止在设备上运行
- javascript - 在表中添加列名和vue中的链接