Created
January 27, 2012 18:18
-
-
Save pablasso/1690133 to your computer and use it in GitHub Desktop.
UIView animation
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
UIView *testView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 100.0f)]; | |
[UIView animateWithDuration:1.0f | |
animations:^{ | |
testView.transform = CGAffineTransformTranslate(testView.transform, 100.0f, 0.0f); | |
} | |
completion:^(BOOL finished){ | |
if (finished) { | |
// Do some magic after the animation finishes | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment