Skip to content

Instantly share code, notes, and snippets.

@toranb
Created June 14, 2012 01:55
Show Gist options
  • Select an option

  • Save toranb/2927675 to your computer and use it in GitHub Desktop.

Select an option

Save toranb/2927675 to your computer and use it in GitHub Desktop.
Initial animate view down method (without blocks)
- (void)animateViewDown:(NSUInteger)size
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
CGRect rect = self.view.frame;
rect.origin.y -= size;
rect.size.height += size;
self.view.frame = rect;
[UIView commitAnimations];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment