ios - 如何在 presentTextInputControllerWithSuggestions 中自定义听写 View

标签 ios swift watchkit textinput dictation

我制作了一个带有 presentTextInputControllerWithSuggestions 的页面,我想自定义听写 View 。

例如,我不想看到“取消”,而是“重试”。

我看到在消息应用程序中,听写 View 是默认 View ,但带有“发送”而不是“完成”。

您知道这种定制是否可用吗?我该怎么做?

最佳答案

不,无法自定义“取消”和“完成”按钮。

Apple 可以使用他们的私有(private) API 方法为他们的应用定制 UI/UX 来做我们(目前)做不到的事情。

最好的办法是submit a feature request .

您可以通过查看文档方法或检查头文件来确定您能够更改的内容,这两种方法都可以在 Xcode 中轻松获得。

关于ios - 如何在 presentTextInputControllerWithSuggestions 中自定义听写 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38391196/

相关文章:

ios - iOS TableView渐变效果

ios - 为什么 UITableViewAutomaticDimension 不适用于 sectionFooterHeight?

swift - Swift 崩溃日志中的 "Arg = Exploded"是什么意思?

ios - 在 iOS 上从 SecKeyRef 生成 PKCS12 key

ios - 在 WatchKit 中更新表格行

ios - OpenGL ES 2 中足够快的实时卷积着色器的最佳方法是什么?

iphone - Xcode 不会检测到设备

ios - 如何清除 NSMutableAttributedString 中的属性?

swift - 使用默认方法扩展 NSTableViewDataSource 协议(protocol)

ios - 在 WatchKit 中隐藏页面指示器点?