IOS7 hue color only works after presenting and rejecting another ViewController

I have a very strange color tint problem in iOS7.

When the ViewController that I am having problems with the first downloads, the entire shade of light gray is as if everything is inactive or behind the UIAlertView that darkened the screen. The buttons are still active and working fine, but they are all gray. (I have the hue set to orange, more on this a bit).

Here's the odd part. If I imagine, and then immediately reject another ViewController, an orange tint appears, and everything works as expected. This is the only way I was able to get a shade - nothing else works.

I use the same basic code templates throughout the application, and this problem really affects only one ViewController. This particular ViewController is presented UIModalPresentationFullScreenand UIModalTransitionStyleCoverVertical, if at all, relevant.

This is how I configure tinting:

Firstly, I set the hue color on each view controller in the interface builder, these settings are the same for working and problem VCs.

Next, I set the hue color globally in my application as follows:

    [_window setTintColor:[UIColor orangeColor]];

The above two work on most of my ViewControllers, but not all of them for some reason. For those that he did not work on, I used several different methods to get the color of the shade. For example:

self.view.tintColor = [UIColor orangeColor];

or

[_myUIBarButtonItem setTitleTextAttributes:
 [NSDictionary dictionaryWithObject:[UIColor orangeColor]
                             forKey:NSForegroundColorAttributeName]
                                           forState:UIControlStateNormal];

or to force tintColor update:

[_myButtonOutlet setTitleColor:_cancelButtonOutlet.tintColor
                      forState:UIControlStateNormal];

Any ideas?

+4
1

iOS7 , , .

, , - tintAdjustmentMode Normal didFinishLaunching .

self.window.tintAdjustmentMode = UIViewTintAdjustmentModeNormal;
+4

All Articles