2010-08-02 148 views

回答

2
for (UIWindow *keyboardWindow in [[UIApplication sharedApplication] windows]) 
    for (UIView *keyboard in [keyboardWindow subviews]) 

     if([[keyboard description] hasPrefix:@"<UIFormAssistant"] == YES) 
     { 
      [keyboard removeFromSuperview]; 
     } 

骯髒的方式,但它的工作原理;)

9

還沒有嘗試過與選擇器中的Web視圖,但這絕對致力於消除鍵盤:

[theWebView endEditing:YES];