Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Return Key method in UIInputViewController in iOS8?

I am developing custom keyboard with keyboard extension in iOS8.

I can dismiss keyboard with following method.

[self dismissKeyboard];

However above method is only dismiss keyboard. I want to do it like return Method that can like GO or Search that can use both dismiss and Go Event like iOS Built in Keyboard.

How can i do it?

like image 918
Fire Fist Avatar asked Jun 23 '14 12:06

Fire Fist


1 Answers

You can use [self.textDocumentProxy insertText:@"\n"];

like image 181
woof Avatar answered Oct 20 '22 22:10

woof