Question

my question is kind of straightforward and pretty much the opposite of what most people try to achieve:

How can I prevent the keyboard from disappearing when the 'return' / 'done' button is pressed?

Thanks a lot! Regards, wasabi

Was it helpful?

Solution

You need to create a UITextFieldDelegate, and override the textfieldShouldReturn: method. If you return NO from this method, the keyboard will not disappear.

And of course, link up your delegate to the textField

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top