UISearchBar and Dictation Support

I have a user interface with UISearchBar and I am implementing UISearchBarDelegate searchBarSearchButtonClicked: to do a search. I don't have a dictation enabled device to test this, so I will reflect here ...

On dictation-enabled devices, I would like to search as soon as the dictation ends, without requiring the user to press the search button manually.

  • Does it work out of the box?
  • Or do I need to process it programmatically?

Starting with iOS 5.1, there are new methods in the UITextInput protocol, and I could theoretically connect to dictationRecordingDidEnd . Is that the way?

+7
source share
1 answer

Yes, you would like to use the dictationRecordingDidEnd protocol dictationRecordingDidEnd . Apple's documentation says this dictationRecordingingDidEnd :

Implement this optional method if you want to respond to the completion of the recognition of the dictated phrase.

However, I have not yet found in the Apple manual human interfaces all that speaks of the expected use of this method.

You can also look at the dictationRecongitionFailed , as well as the UIDictationPhrase class .

+5
source

All Articles