Created
May 27, 2013 09:20
-
-
Save Kursulla/5656058 to your computer and use it in GitHub Desktop.
Animate UI changes
[Objective-C,ios,xcode,objc, animation, animate]
This file contains 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
CGRect someUIElementFrame = _someUIElement.frame; | |
[UIView beginAnimations:nil context:nil]; | |
[UIView setAnimationDuration:0.3]; | |
// [UIView setAnimationDelay:1.0]; | |
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; | |
someUIElementFrame.origin.x=-120; | |
[_someUIElement setFrame:leftsomeUIElementFrameImageFrame]; | |
[UIView commitAnimations]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment