I am using few UITextFields with different inputviews using Keyboards, Pickerviews etc in my iPad App. Normally inputview should appear from the bottom of the screen but most of the times it appears from above the bottom - about 50 pixels. I have attached couple of snapshots for this. This is happening very randomly, but when happens once, it does same for all UITextFields. Could anyone please tell me what are the factors affect this and how to get rid of this issue? I want inputview to appear from bottom of the screen always. Please note that I don't have navigation controller, I use presentviewmodel through out my App, and have a customised navigation controller look like bottom! Thanks.
* I have noticed that this happens even for Google Map while selecting From and To Textfields. This must be something weird! *
I am making sure that selected textview always resignfirstresponder by following methods.
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{
selectedTextField = textField;
return YES;
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[textField resignFirstResponder];
return YES;
}
- (void)textFieldDidEndEditing:(UITextField *)textField
{
[textField resignFirstResponder];
}
- (void)donePickerViewButtonPressed
{
[selectedTextField resignFirstResponder];
}