I have a an app which has worked perfectly well until the release of IOS 5. I’ve managed to fix most of the problems caused by the upgrade but I cannot get the keyboard to retract. My other apps manage to do it ok under IOS 5 but I’m missing something with this app. The app scrolls though a large Pdf and the textField is to take the user to a specific page. When the keyboard appears it covers the textField and only the Pdf is visible. Under 4.2 the keyboard retracts when the Pdf is pressed but that doesn’t work with IOS 5. I’m using the code below but it doesn’t get called, whereas in my other apps which retract the keyboard successfully the code is called, what am I missing.
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if(textField == pageNo){
[pageNo resignFirstResponder];
}
return YES;
}
Quick fix idea? put this in the pdf view touch handler?
if ([pageNo isFirstResponder]) [pageNo resignFirstResponder];