iOS7延迟应用UIKeyboardAppearanceDark

标签 ios ios7 uikeyboard

我在 iOS7 中看到一个奇怪的行为,我在 viewDidLoad 中将键盘外观设置为 UIKeyboardAppearanceDark,但键盘最初会以默认(浅灰色)样式出现,然后稍后切换到深色样式。

当我在 XIB 文件中设置键盘外观时,我在不同的 UIViewController 中进一步看到了这种行为 - View 加载并随着 View 出现而快速从浅色闪烁到深色。

谁能提出这种行为的原因,或者这是 iOS7 中的错误?

最佳答案

在 viewWillAppear 中设置键盘外观,使其在 View 加载前变暗。

关于iOS7延迟应用UIKeyboardAppearanceDark,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19323531/

相关文章:

ios - 使用AVFoundation扫描PDF417条码

swift - ios8 swift : how can i access/edit/remove default/private inputAccessoryView height constraint '_UIKBAutolayoutHeightConstraint'

swift - UIAlertView clickedButtonAtIndex

ios - iOS 7 崩溃 : [NSConcreteMapTable assign:key:value:isNew:]

swift - 如何为特定文本字段预选大写锁定?

swift - 键盘问题上方的文本字段

ios - 我怎样才能调用其他类按钮 - Swift

android - 应用程序开发 : Project Finalisation & Handover (iOS & Android)

ios - USB 连接的 iPhone 屏幕镜像

ios - CoreBluetooth 在预定时间在后台运行