Skip to content

Instantly share code, notes, and snippets.

@bjhomer
Created July 2, 2012 22:58
Show Gist options
  • Save bjhomer/3036241 to your computer and use it in GitHub Desktop.
Save bjhomer/3036241 to your computer and use it in GitHub Desktop.
NSView *view;
// view.hidden == YES right now
// view.alpha = 0.0 right now;
[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {
context.duration = 0;
view.hidden = NO;
}];
view.animator.alpha = 1.0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment