Oliver
Oliver

Reputation: 23550

iPhone - keyboard with OK button to dismiss, with return key accepted in the UITextView

I'm searching for a good method to display a keyboard with a done button to allow it to dismiss when the user have finished modifying a UITextView. The UITextView may accept return keys so I can't use the keyboard button to dismiss it.

It would be also really great if this keyboard was modal, or if a click anywhere on another control than the UITextView would dismiss it.

Do you know how to do it and do it well ?

I tried a lot of code found on the Web, and I'm a little bit tired for now trying to make such a simple and standard thing...

Upvotes: 1

Views: 1479

Answers (1)

Jim
Jim

Reputation: 73966

Take a look at Custom Views for Data Input.

Also, you don't "click" in iOS, you "tap".

Upvotes: 1

Related Questions