【问题标题】:INUIAddVoiceShortcutViewController displayed always in EnglishINUIAddVoiceShortcutViewController 始终以英文显示
【发布时间】: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


    【解决方案1】:

    此问题已在 iOS 14 上解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 1970-01-01
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      • 2012-12-12
      相关资源
      最近更新 更多