Search code examples
iosstoryboarduibarbuttonitemtintcolor

UIBarButtonItem setTintColor white but when run in a real phone it change to gray


I set the UIBarButtonItem tintColor to white, It is white appearance in storyboard and the simulator,But when run in a real phone it comes to gray! Why are so strange?

In real phone: enter image description here

Simulator: enter image description here

Also When set a UIBarButtonItem image has the same problem

In real phone:

enter image description here

In Simulator:

enter image description here


Solution

  • I had the same problem and next approach helped me:

    1. Go to the iPhone Settings -> General -> Accessibility -> Increase Contrast
    2. Darken Colors turn off;