Here is the code:
[UIView beginAnimations:@"hideView" context:nil]
[UIView setAnimationDuration:0.7]
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:toolBar cache:YES]
toolbarFrame.origin.y = 380;
toolBar.frame = toolbarFrame;
[UIView commitAnimations]
you can change the beginning of toolBar 'y'.
source
share