代码之家  ›  专栏  ›  技术社区  ›  Stefan Badertscher

iOS的yalantis选项卡

  •  1
  • Stefan Badertscher  · 技术社区  · 8 年前

    我在使用iOS版Yalantis Folding Tabbar时遇到问题: https://github.com/Yalantis/FoldingTabBar.iOS

    我做了他们在github页面上说的事情,这意味着:

    • 将情节提要中的类设置为Yalantis自定义类
    • 已将Swift代码段添加到AppDelegate类
    • 更改了部分的选项:Github页面的重要注释

    但我的选项卡是空白的(白色,没有任何内容)

    有人知道我在这里错过了什么吗? 非常感谢。

    1 回复  |  直到 8 年前
        1
  •  0
  •   matthew    8 年前

    tabBarController.tabBarView.backgroundColor = UIColor(
                                                      red: 94.0/255.0,
                                                      green: 91.0/255.0,
                                                      blue: 149.0/255.0,
                                                      alpha: 1
                                                  )
    
    tabBarController.tabBarView.tabBarColor = UIColor(
                                                  red: 72.0/255.0,
                                                  green: 211.0/255.0,
                                                  blue: 178.0/255.0,
                                                  alpha: 1
                                              )
    
    tabBarController.tabBarView.dotColor = UIColor(
                                               red: 94.0/255.0,
                                               green: 91.0/255.0,
                                               blue: 149.0/255.0,
                                               alpha: 1
                                           )