iPadでキーボードを隠そうとしていますが、なぜresignFirstResponderが動作しないのか分かりません。 しかし、popToRootはうまく機能しています。resignFirstResponderうまくいきませんか?
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
NSString *desc = [NSString stringWithFormat:@"%@",[descTF text]];
[textField resignFirstResponder];
[self.navigationController popToRootViewControllerAnimated:YES];
return YES;
}
だから私はどうすればいいですか?
http://stackoverflow.com/questions/3124828/resignfirstresponder-not-hiding-keyboard-on-textfieldshouldreturn –
私は を配置しよう - (BOOL)disablesAutomaticKeyboardDismissal { リターンNO。 } - (BOOL)textFieldShouldReturn:(UITextField *)textField {...}でもキーボードはまだ隠されていませんでした。私が投稿したリンクの – crazyoxygen
は、問題はAppleのバグかもしれません。 –