cheznead cheznead - 6 months ago 26
Swift Question

Back button showing as different colour on screen?

To experiment with the back button in a navigation controller set up, I added a button programmatically without using storyboard and without using the default navigation bar and back button you get for free with the navigation controller.

In App Delegate I simply said:

navigationController.isNavigationBarHidden = true

I set the button to a simple black and white image icon - but when I run it in the simulator the image shows as blue.

Does anyone know why this might be? It seems to still be picking up the navigation controller colour of blue but I have set the
to be true.

Answer Source

from assets, make sure the photo is selected and go to attributes inspector and change “render image as” to Original, same applies for tab bar items images

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download