Set the agent on the input Uitextfield control, and then stick the two methods.
#pragma mark-keyboard retract-(void) textfielddidendediting: (Uitextfield *) textfield{[Self.recordView.phoneTextField Resignfirstresponder]; [Self.recordView.passWordTextField Resignfirstresponder]; Nstimeinterval animationduration = 0.0f; [UIView beginanimations:@ "Resizeforkeyboard" context:nil]; [UIView setanimationduration:animationduration]; CGRect rect = CGRectMake (self.view.frame.origin.x, (Sysio7? 64:0), Self.view.frame.size.width, Self.view.frame.size.height); Self.view.frame = rect; [UIView commitanimations];} #pragma mark-keyboard bouncing-(void) textfielddidbeginediting: (Uitextfield *) TextField {nstimeinterval animationduration = 0.0f; [UIView beginanimations:@ "Resizeforkeyboard" context:nil]; [UIView setanimationduration:animationduration]; Float offset = textfield.frame.origin.y + textField.frame.size.height + self.view.frame.origin.y-(Sysio7? 64:0) + 255 -self.view.frame.size.height+230; if (Offset > 0) {cgrect rect = CGRectMake (self).View.frame.origin.x, Self.view.frame.origin.y-offset, Self.view.frame.size.width, self.view.frame.size.height); Self.view.frame = rect; } [UIView commitanimations];}
ios-Keyboard Recycling