Search code examples
iosios9ios10

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


I enabled the dictation in my keyboard setting but still it's not working for iOS 10 for my developed application. While the AutoCorrection is working for my SMS APP.

Thanks in Adv.


Solution

  • You must not be adding the attribute for name NSTextAlternativesAttributeName back to attributed string and that's why suggestions are not coming. You will need to save the value of NSTextAlternativesAttributeName and add them again while you add your attributes.

    That should solve the problem.

    Also look at NSTextAlternatives