默认WatchOS的presentTextInputController是英文识别的,当用户在识别时使用深度触摸改变语言时,我们可以使用deep touch.How来改变识别语言,以获得语言代码。
发布于 2017-05-10 21:27:49
我认为目前这是不可能的。看一看WatchKit的文档,似乎没有这样的应用程序接口。但是,如果要指定可以处理的语言,则可以调用presentTextInputControllerWithSuggestions(forLanguage:allowedInputMode:completion:)
。请参阅official documentation。
https://stackoverflow.com/questions/43891529
复制相似问题