First create a textfiled and implement the Proxy method
1- (void) Textfielddidbeginediting: (Uitextfield *) TextField2 {3 //set the name of the animation4[UIView beginanimations:@"Animation"Context:nil];5 //set the time interval for animations6[UIView setanimationduration:0.20];7 //?? Start the next animation using the currently running state8 [UIView Setanimationbeginsfromcurrentstate:yes];9 //set the displacement of the View movementTenSelf.view.frame = CGRectMake (self.view.frame.origin.x, SELF.VIEW.FRAME.ORIGIN.Y- $, Self.view.frame.size.width, self.view.frame.size.height); One //Set Animation End A [UIView commitanimations]; - } -- (void) Textfielddidendediting: (Uitextfield *) TextField the { - //set the name of the animation -[UIView beginanimations:@"Animation"Context:nil]; - //set the time interval for animations +[UIView setanimationduration:0.20]; - //?? Start the next animation using the currently running state + [UIView Setanimationbeginsfromcurrentstate:yes]; A //set the displacement of the View movement atSelf.view.frame = CGRectMake (self.view.frame.origin.x, SELF.VIEW.FRAME.ORIGIN.Y + $, Self.view.frame.size.width, self.view.frame.size.height); - //Set Animation End - [UIView commitanimations]; - } --(BOOL) Textfieldshouldreturn: (Uitextfield *) TextField - { in [_text Resignfirstresponder]; - returnYES; to}
Iosview Move Down overall (click on the keyboard)