0

Here is an answer on how to change the color of the selected tab:

Change tab bar item selected color in a storyboard

How do I change the color of the unselected tabs? Short of adding custom images for selected/unselected, which seems like too much hassle for this simple task.

Community
  • 1
  • 1
Irina Rapoport
  • 1,404
  • 1
  • 20
  • 37
  • 1
    Too much hassle? Really? It's quite easy. Create the images in another app like Sketch or create them in code. It's only a few lines of code. What are your problems with this approach? – dasdom Apr 17 '16 at 07:20
  • Perhaps none. Just thought there had to be a 1-liner programmatic solution. Is it impossible to change the color programmatically? – Irina Rapoport Apr 17 '16 at 07:28
  • Sure. But you need to use an image with a the color. – dasdom Apr 17 '16 at 09:42
  • So no programmatic logic to change the color of an inactive tab? Only of an active one? – Irina Rapoport Apr 17 '16 at 15:21
  • You can change the color of the tabBar in total. – dasdom Apr 17 '16 at 16:01
  • In storyboard? How? Will that change the foreground, not the background color? (My unselected images are gray on white, and I need to make them a lighter gray) – Irina Rapoport Apr 17 '16 at 16:29

0 Answers0