How to HIDE the iPad keyboard from a MODAL view controller?

Posted by Cal on Stack Overflow See other posts from Stack Overflow or by Cal
Published on 2010-05-04T01:25:48Z Indexed on 2010/05/04 1:58 UTC
Read the original article Hit count: 535

I'm trying to hide the iPad keyboard from a modal view controller but it doesn't work. I have tried resignFirstResponder but that doesn't have any affect if we are in a modal view controller. I tried resignFirstResponder in a non-modal UINavigationController with the very same UIViewController and the keyboard hides correctly.

Does anyone know how solve this problem?

Thanks.

[Update] it looks like there's something wrong with my code because the resignFirstResponder does work (I made a simple test case instead of using my code). But I still don't know what the problem is.

© Stack Overflow or respective owner

Related posts about ipad

Related posts about modalviewcontroller