Created
June 14, 2012 01:55
-
-
Save toranb/2927675 to your computer and use it in GitHub Desktop.
Initial animate view down method (without blocks)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (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