Skip to content

Instantly share code, notes, and snippets.

@nvkiet
Last active October 25, 2015 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvkiet/a5952bc76d0c8b59920c to your computer and use it in GitHub Desktop.
Save nvkiet/a5952bc76d0c8b59920c to your computer and use it in GitHub Desktop.
UIView Animation
[UIView animateWithDuration:0.5 delay:0 usingSpringWithDamping:0.5 initialSpringVelocity:10.0 options:UIViewAnimationOptionCurveEaseIn animations:^{
        self.view.superview.top -= FilterViewHeight;
    } completion:^(BOOL finished) {
        self.isShown = YES;
        if ([self.delegate respondsToSelector:@selector(filterViewControllerDidShow:)]) {
            [self.delegate filterViewControllerDidShow:self];
        }
 }];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment