Skip to content

Instantly share code, notes, and snippets.

@joshaber
Created September 11, 2010 07:46
Show Gist options
  • Save joshaber/574957 to your computer and use it in GitHub Desktop.
Save joshaber/574957 to your computer and use it in GitHub Desktop.
CGRect newFrame = [view.superview convertRect:view.frame toView:nil];
[view.window addSubview:view];
view.frame = newFrame;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment