IOS7 delay in applying UIKeyboardAppearanceDark

I see strange behavior in iOS7 where I set the keyboard appearance in UIKeyboardAppearanceDark to viewDidLoad, but the keyboard will initially appear in the default style (light gray), and then the second will later switch to dark style.

I also see this behavior in another UIViewController when I set the appearance of the keyboard in a XIB file - the view loads and quickly blinks from light to dark when the view is displayed.

Can someone suggest a reason for this behavior, or is it a bug in iOS7?

+6
source share
2 answers

Set the appearance of the keyboard in viewWillAppear so that it is dark before the view loads.

0
source

You can set the Appearance property to Dark in the interface builder for the corresponding UITextField.

0
source

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


All Articles