Skip to content

Instantly share code, notes, and snippets.

@bartolsthoorn
Created March 9, 2013 18:16
Show Gist options
  • Save bartolsthoorn/5125116 to your computer and use it in GitHub Desktop.
Save bartolsthoorn/5125116 to your computer and use it in GitHub Desktop.
CGRect newFrame = CGRectMake(_menuView.frame.size.width*-1, _menuView.frame.origin.y, _menuView.frame.size.width, _menuView.frame.size.height);
_menuView.frame = CGRectMake(0, _menuView.frame.origin.y, _menuView.frame.size.width, _menuView.frame.size.height);
[UIView animateWithDuration:0.5
animations:^{
_menuView.frame = newFrame;
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment