简体   繁体   中英

Keyboard won't appear in modal view controller

I have a UIWebView in a modal view controller (using SVModalViewController ). In iOS 4.2, when I tap on an input text field, the keyboard does not appear. The view animation where the page scrolls to make room for the keyboard still happens, but nothing appears. It works fine in iOS 5.

I am calling [self.window makeKeyAndVisible] in the application delegate, so that is not the issue.

Any guidance would be very much appreciated!

解决方案:我需要使包含UIWebView的视图控制器成为第一个响应者,然后,它起作用了!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM