UITextField开始听写 [英] UITextField begin dictation

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

问题描述

我想以编程方式将我的UITextField输入置于听写模式,而无需用户调出并从键盘中选择听写。搜索了API文档但没有找到解决方案。有什么想法吗?

I'd like to programmatically put my UITextField input into dictation mode, without requiring the user to bring up and select dictation from the keyboard. Searched the API documentation but can find no solution. Any ideas?

推荐答案

这在iOS上目前无法实现。

This is currently not possible on iOS.

唯一可能的地方是使用WatchKit的应用程序。在WKInterfaceController中,您实际上可以使用 presentTextInputControllerWithSuggestions ,并将nil作为参数立即启动听写输入。

The only place where it is kind of possible is in an app using WatchKit. In WKInterfaceController you can actually use presentTextInputControllerWithSuggestions with nil as parameter which starts dictation input immediately.

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

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