[UIView animateWithDuration:0.6 animations:^{
CGRect frame = _barView.frame;
frame.origin.y = 5;
_barView.frame = frame;
} completion:^(BOOL finished){
if (finished) {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDelay:1.0];
[UIView setAnimationDuration:0.6];
CGRect frame = _barView.frame;
frame.origin.y = -40;
_barView.frame = frame;
[UIView commitAnimations];
}
}];