WatchKit Text Input Controller
3 answers
From the iOS 8.2 release note :
Watchkit
Known Issues
Real TextInputControllerWithSuggestions: Completion: The WKInterfaceController method is currently not supported in the iOS Simulator.
+7
source to share
You can try it by clicking on the offer. He must do the same as dictate. Remember that completion returns an array, not a string. You should do it like this:
self.presentTextInputControllerWithSuggestions(["Suggestion 1", "Suggestion 2"] allowedInputMode: .Plain, completion: { (selectedAnswers) -> Void in
if reply && reply.count > 0 {
if let spokenReply = selectedAnswers[0] as? String {
println("\(spokenReply)")
}
}
})
+5
source to share