听写完成后,自动更正在 iOS 10 中不起作用,而在 iOS 9 中起作用

After dictation finished, AutoCorrection is not working in iOS 10 while its working in iOS 9

我在我的键盘设置中启用了听写,但它仍然不适用于我开发的应用程序的 iOS 10。当自动更正为我的短信应用程序工作时。

感谢 Adv.

您不能添加名称 NSTextAlternativesAttributeName back to attributed string and that's why suggestions are not coming. You will need to save the value of NSTextAlternativesAttributeName 的属性并在添加属性时再次添加它们。

这应该可以解决问题。

另请参阅NSTextAlternatives