Created
March 25, 2013 09:38
-
-
Save NikolaKirev/5236003 to your computer and use it in GitHub Desktop.
Simple UIView ANimation with blocks - iOS
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 animateWithDuration: 0.9 delay: 0 options: UIViewAnimationOptionCurveEaseInOut animations: ^(void)animations{ | |
CGPoint newCenter = CGPointMake(self.greenView.center.x + 180, self.greenView.center.y + 260); | |
[self.greenView setCenter: newCenter]; | |
}completion:^(BOOL finished){ | |
//this code is called after the aminations have completed | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment