【发布时间】:2019-10-23 08:50:35
【问题描述】:
我已将 Siri 快捷方式 添加到我的应用程序中,一切正常,除了 INUIAddVoiceShortcutViewController 始终以英语而不是设备语言显示。
是错误还是我们必须在某处配置翻译后的字符串?
这是我如何启动控制器:
if let inShortcut = INShortcut(intent: intent) {
inShortcut.intent?.suggestedInvocationPhrase = phrase
let viewController = INUIAddVoiceShortcutViewController(shortcut: inShortcut)
viewController.modalPresentationStyle = .pageSheet
viewController.delegate = self
self.present(viewController, animated: true, completion: nil)
}
此问题仅在 iOS13 上发生(在 iOS12 上控制器显示正确)。
【问题讨论】:
标签: ios swift ios13 siri sirishortcuts