2013-02-04 65 views
0

在iPad上我們有如何隱藏鍵盤在iPad上同時按下arrowkey

- (BOOL)textFieldShouldReturn:(UITextField *)textField 
{ 

[textFieldOne resignFirstResponder]; 
[textFieldTwo resignFirstResponder]; 
return YES; 


} 

,但我們也可以在方向鍵

這裏關閉鍵盤,這樣whcich箭頭鍵的那個方法上,我們可以展示一些東西是的截圖

enter image description here

+0

iPad上的箭頭鍵?我不太明白。 – Raptor

+0

什麼是箭頭鍵? –

+0

我想你可以在這裏找到你想要的: http://stackoverflow.com/questions/10151426/detecting-if-user-pressed-go-or-hide-keyboard-button-uitextfield –

回答

0

沒有當點擊iPad上的「隱藏鍵盤」按鈕,它被調用的任何功能。如果您想在鍵盤關閉時執行任何操作。您可以使用以下功能:

- (void)textFieldDidEndEditing:(UITextField *)textField 

或者,您可以使用鍵盤通知,即UIKeyboardWillHideNotification