我在AppStore中有一个为4.2编译的应用程序,它在iOS5.0下运行时表现很奇怪。我已经追踪到resignFirstResponder在iOS5.0下被调用了两次,而在iOS4.2和4.3下它只被调用了一次。我从UITextField派生了一个类,我在其中覆盖了resignFirstResponder。请参阅下面的示例代码。在iOS4.2和4.3下,我在控制台中看到以下内容:textFieldShouldReturnresignFirstRespondertextFieldDidEndEditing在iOS5.0下,我在控制台中看到以下内容:textFieldShouldRetu