当前位置: 动力学知识库 > 问答 > 编程问答 >

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

网友答案:

Take a look at Custom Views for Data Input.

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: