Skip to content

Instantly share code, notes, and snippets.

@Kursulla
Created May 27, 2013 09:20
Show Gist options
  • Save Kursulla/5656058 to your computer and use it in GitHub Desktop.
Save Kursulla/5656058 to your computer and use it in GitHub Desktop.
Animate UI changes [Objective-C,ios,xcode,objc, animation, animate]
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