UITextView keyboardDismissMode Bug [英] UITextView keyboardDismissMode Bug

查看:127
本文介绍了UITextView keyboardDismissMode Bug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在滚动视图的新 keyboardDismissMode 属性中发现了一个令人讨厌的错误。当使用文本视图并使用值 UIScrollViewKeyboardDismissModeInteractive 时,键盘将被解除滚动view 似乎在继续减速之前跳到顶部。

I've just found an annoying bug with the new keyboardDismissMode property of the scroll view. When using this with a text view with the value UIScrollViewKeyboardDismissModeInteractive and the keyboard is dismissed the scroll view seems to jump up to the top before it continues to decelerate.

我已向Apple提交了一份错误报告,但需要一个解决方法。我已经尝试了 DAKeyboardControl 而没有新的 iOS7 支持,其后面是使用 keyboardDismissMode 它仍然会对我说明这是一个更深层次的问题。

I've filed a bug report with Apple but need a workaround. I've tried the DAKeyboardControl without the new iOS7 support which behind the scenes is using the keyboardDismissMode and it still does it which to me indicates this is a much deeper problem.

有什么建议吗?

推荐答案

对于这个问题,您可以使用scrollviewDelegete进行编码,只需提及何时通过ResignFirstResponder关闭键盘

for this issue better you code with scrollviewDelegete and simply mention when you want dismiss keyboard through ResignFirstResponder

这篇关于UITextView keyboardDismissMode Bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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