1

I am making a custom keyboard, and I'm working on auto-correct and auto-suggest features. One thing I'm looking for is how to tell when someone hit "Send" in Messages, for instance, so I can make a last correct before the text is submitted?

s73v3r
  • 1,751
  • 2
  • 22
  • 48

1 Answers1

0

First case and the simplest answer - just use - (void)textDidChange:(id<UITextInput>)textInput from your UIInputViewController subclass. But you'll catch it after send text. Details in this SO answer

The second case - it just intercepts user tap on "Send" button on the extension view - it is just a button huh.

enter image description here

WINSergey
  • 1,977
  • 27
  • 39
  • It seems you got collectionView working perfectly in your keyboard. I would appreciate any comment on my problem here. https://stackoverflow.com/questions/50904906/collectionviewcells-iboutlet-is-nil-in-custom-keyboard-extension – Alok C Jun 18 '18 at 19:46