有没有办法确定 UITextField 中何时发生语音文本输入?

发布于 2024-12-19 13:27:09 字数 136 浏览 5 评论 0原文

在 iPhone 4S 上使用语音输入时,不会触发任何 UITextFieldDelegate 方法。我还尝试使用 UIControl 事件 valueChanged,但这不会触发。最后,我尝试对文本字段的文本属性进行 KVO,但也没有触发。还有其他想法吗?

None of the UITextFieldDelegate methods get fired when using voice input on the iPhone 4S. I also tried using the UIControl event valueChanged, but that doesn't fire. Finally, I attempted KVO on the text property of the text field, and that doesn't fire either. Any other ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慕巷 2024-12-26 13:27:09

我犹豫是否建议这样做,但鉴于通常的方法已被尝试但没有成功,那么使用 NSTimer 轮询文本字段怎么样?

I hesitate to suggest this, but seeing as how the usual methods has been tried without success, how about a NSTimer that polls the textfield?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文