UIAlertController Status Bar Does Not Fog and Shade Colors

I’m moving from using UIAlertViewto UIAlertControllerbeing introduced in iOS 8. However, I see some strange presentation problems that I don’t see when using UIAlertView. Firstly, when a warning is displayed, the status bar text will not fade:

Status bar is not darkened

Also, after displaying the status bar, the back arrow in is UINavigationControllernow installed on the tintColor application, and not on the white tintColor that I installed for UINavigationBar. This affects other elements UINavigationBarthroughout the application, such as the Add (+) and Edit buttons. Before displaying, UIAlertControllerall elements of the panel button were displayed as white.

wrong hue color for back button

wrong hue color for editing and back button

. :

UIAlertController *view = [UIAlertController alertControllerWithTitle:VALIDATION_TITLE message:text preferredStyle:UIAlertControllerStyleAlert];
[view addAction:[UIAlertAction actionWithTitle:VALIDATION_BUTTON_OK style:UIAlertActionStyleDefault handler:nil]];
[self presentViewController:view animated:YES completion:nil];
+4
1

, diplaying UIAlertControllers, UIViewController, stackoverflow:

fooobar.com/questions/34206/...

show:, UIWindow UIAlertController , - UI, .

- , , , , !

+1

Source: https://habr.com/ru/post/1626896/


All Articles