ios - 位置权限弹出窗口不使用 CFBundleSpokenName

标签 ios swift

当使用 CLLocationManager subscribeToAuthorizationStatus 方法要求用户访问他/她的位置时,会显示一个标题为“允许 <' appname'> 来访问您的位置?”

当对此类系统警报 View 使用辅助功能旁白时,发音的应用程序名称似乎是 CFBundleDisplayName 而不是 CFBundleSpokenName

有没有办法让画外音用 CFBundleSpokenName 文本发音应用程序名称?

最佳答案

Is there any way to get the voiceover to pronounce the appname with the CFBundleSpokenName text?

这绝对是 CFBundleSpokenName 的用途:如果有原生组件不遵守此规则,我强烈建议打开雷达,以便尽快提供解决方案.

关于此 key ,Apple 文档指出:

CFBundleSpokenName (String - iOS, macOS) contains a suitable replacement for the app name when performing text-to-speech operations. Include this key in your app bundle when the spelling of your app might be mispronounced by the speech system. For example, if the name of your app is “MyApp123”, you might set the value of this key to “My app one two three”.

如果您的应用名称未按照您希望的 VoiceOver 拼写,则 CFBundleSpokenName 应该可以在您设备上的任何位置执行此操作:如果您的问题在 iOS 13 中仍然存在,那绝对是一个错误应该报告这一点。

⚠️ ⬛️◼️🔳▪️ 编辑 ▪️🔳◼️⬛️ ⚠️ (2020/04/03)

我写了一个开发开发者技术技术S支持意外(编号 732724589) 对于这个问题,苹果的回答承认这是一个他们无法提供解决方案的问题。

我提交了一份题为VoiceOver:位置权限弹出窗口不使用CFBundleSpokenName的错误报告,引用号为FB7650152,以便尽快找到解决方案。

现在,您知道为什么位置权限弹出窗口不使用CFBundleSpokenName了。 😥

关于ios - 位置权限弹出窗口不使用 CFBundleSpokenName,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53375280/

相关文章:

ios - 无法使用类型为 'sendData' 的参数列表调用 '(NSData,toPeer:NSArray,......'

iOS 7 -(无效)setupAlertCtr :(NSString*)choseMenuType compatibility

swift - Xcode 代码中无法识别的其他 Swift 标志

ios - 错误 - 找不到接受所提供参数的 '-' 的重载

ios - 具有不同自动旋转选项的屏幕

ios - iOS中的音频处理以获得音量和音调

ios - 'UIInterpolatingMotionEffect' 没有可见的@interface 声明选择器 'initWithKeyPath:type:'

ios - 如何在 Swift 中使用带有 #define 宏的 Objective-C 代码

ios - 无法将字符串转换为双 Swift

swift - 如何在 IBM Swift Sandbox 中播种 rand()?