I have a simple animation that I execute in my scroll delegate scrollViewDidEndDragging .
It looks like this:
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate { NSLog(@"finger was lifted"); [UIView animateWithDuration:1.0 animations:^{ self.homeLabel.frame = self.view.frame; }]; }
Using this animation after lifting my finger, my homeLabel goes on top and I want to add its rebound animation to the shortcut, so when it comes from above, instead of coming smoothly, it will have a good rebound ... How do I do this? thanksss
source share