문제

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...

도움이 되었습니까?

해결책

Take a look at Custom Views for Data Input.

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

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