Changing tab bar item image and text color iOS

前端 未结 22 1103
说谎
说谎 2020-12-02 06:10

Here is my tab bar:

\"enter

The following image shows the program being run an

22条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 06:58

    You may also do by this way:

    override func viewWillLayoutSubviews() {  
      if let items = self.tabBar.items {
        for item in 0..

    Optional:

     UITabBar.appearance().tintColor = UIColor.red
    

    I hope it will help you.

提交回复
热议问题