title: how to change tabBar icon color in ios
body: <p>My current tab bar looks as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/CUpuN.png" alt="enter image description here"></p>
  
  <p>My code is as follows:</p>
  
  <pre><code>-(void)startTabBar{
       self.tabBarController = [[UITabBarController alloc] init];
       TAB_1  *tab_1 = [[TAB_1 alloc]init];
       TAB_2  *tab_2 = [[TAB_2 alloc]init];
       TAB_3  *tab_3 = [[TAB_3 alloc]init];
  
      [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary  dictionaryWithObjectsAndKeys: [UIColor blackColor], NSForegroundColorAttributeName, nil] forState:UIControlStateNormal];
     [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], NSForegroundColorAttributeName,nil] forState:UIControlStateSelected];
  
      NSArray* controllers = [NSArray arrayWithObjects:tab_1,tab_2, tab_3, nil];
  
     self.tabBarController.viewControllers = controllers;
     self.window.rootViewController = self.tabBarController;
  }
  </code></pre>
  
  <p><b>What i want to do is: </b></p>
  
  <p><b>Normal tab:</b> <i>title of tab should be black as it is but only icon image should be black.</i> Expected tab should be like :</p>
  
  <p><img src="https://i.stack.imgur.com/CE7cQ.png" alt="enter image description here"></p>
  
  <p><b>Selected tab: </b><i>title of tab should be red as it is but only icon image should be red.</i> Expected tab should be like :</p>
  
  <p><img src="https://i.stack.imgur.com/8KCpA.png" alt="enter image description here"></p>
  
  <p><b> tab bar color </b>: <i>make the whole tabBar color more transparent with same color </i></p>
  
  <p>Can anyone help to do this?</p>