문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top