Search code examples
iosios7colorstint

iOS - Tint color changes when pressing back


I set global tint color to blue in storyboard, everything is OK, but when pressing back button, some items such as navigation icons or bar segmented controls change to grey. This issue just happens in iOS7.

I know the question is quite general, but I don't know which part of the code is causing this issue. Hopefully, someone has faced into similar problem and could share their idea.


Solution

  • I think tintAdjustmentMode(UIView property) is causing this problem. Try setting tintAdjustmentMode of window to UIViewTintAdjustmentModeNormal.

    In your delegate:

    self.window.tintAdjustmentMode = UIViewTintAdjustmentModeNormal;