iOS 7键盘颜色闪烁 [英] iOS 7 Keyboard color flash

查看:101
本文介绍了iOS 7键盘颜色闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS7中,我将界面构建器中的UITextField的键盘设置为黑暗样式,但是,每当我点击textField键盘最初显示为亮度为几分之一秒,然后转向黑暗样式,怎么能我不这样做吗?

In iOS7, I set the keyboard for my UITextField in Interface builder to the dark style, however, whenever I click on the textField the keyboard initially shows as light for a fraction of a second before turning to the dark style, how can I have it not do this?

推荐答案

我遇到了同样的问题。好像它只是在应用程序暂停后第一次出现键盘时才会发生,然后又恢复了。

I had the same issue. It seems as though it only happens the first time the keyboard appears after an app has been suspended, and then resumed.

我无法直接解决问题,但在我的情况下,我找到了解决方法。具体来说,我的问题是密码屏幕,需要在恢复后出现。每次键盘显示在密码屏幕上时,它都会以浅色开始,然后在动画中途闪烁到黑暗。

I was never able to directly resolve the issue, but in my case, I was able to find a workaround. Specifically, my issue was with a passcode screen, which needed to appear after resume. Every time the keyboard was shown on the passcode screen, it would start as light colored and then flash to dark halfway through the animation.

我通过制作键盘来解决这个问题成为收到暂停事件的第一响应者,而不是恢复。

I got around this by making my keyboard become the first responder when the suspend event was received, instead of resume.

可能无法帮助你,但我想我会分享我的解决方法。

May not help you, but thought I would share my workaround.

这篇关于iOS 7键盘颜色闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆