I need to move the view up when the keyboard is shown but only for 1 textfield at the bottom of my view, I thought it would be as easy as checking for isFirstResponder but no such luck - here is what I was trying:
if ([notes isFirstResponder]) {
[UIView beginAnimations:@"moveupcontrols" context:nil];
[UIView setAnimationDuration:.25];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
self.view.frame=CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y-kOrderFormKeyboardHeight, self.view.frame.size.width, self.view.frame.size.height) ;
[UIView commitAnimations];
keyboardIsShown = YES;
}
I am assuming the notification fires before the FirstResponder flag is set on my textfield. Thoughts on a work around for this?