gpt4 book ai didi

ios - 如何更改 MS TabBarViewController 中选项卡的颜色?

转载 作者:行者123 更新时间:2023-11-29 01:12:45 26 4
gpt4 key购买 nike

我正在使用这个库 https://github.com/fpt-software/Material-Controls-For-iOS/在我的 iOS 应用程序中。具体来说,我正在使用 MDTabBarController,我需要一种方法来更改选项卡颜色,以便它们与我的品牌标识相匹配。我该怎么做?

最佳答案

只需像这样引用您的 tabBar 即可:

[[_tabBarViewController tabBar] setBackgroundColor: [UIColor whiteColor]];

关于ios - 如何更改 MS TabBarViewController 中选项卡的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35559789/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com