我不知道为什么会发生这种情况,我在故事板上检查了它,我的代码搜索了类似的问题,但没有找到任何问题。 在我的tabar中,我有4个选项卡,当我选择标签#2 tabars

问题描述 投票:0回答:1
tab1选择

tab2选择(背景颜色也会更改 enter image description here

选中的TAB3,现在背景颜色正常

enter image description here

enter image description here我认为您在显示第二个选项卡时将标签栏颜色设置。因此,在第二个选项卡中删除背景颜色。如果您仍然找不到在查看选项卡时尝试重置颜色的尝试:-

override func viewWillAppear(animated: Bool) { self.tabBarController?.tabBar.backgroundColor = UIColor.clearColor() }
ios swift uitabbaritem
1个回答
0
投票

我真的很西格玛,所以我希望我的标签颜色变成深红色,因为它是我的fav colourrr,但就像总的来说,它变得柔和,它是一种怪异的栗色颜色,我不喜欢它。如何修复 ???????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.