Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created March 1, 2014 08:31
Show Gist options
  • Save pbrewczynski/9287020 to your computer and use it in GitHub Desktop.
Save pbrewczynski/9287020 to your computer and use it in GitHub Desktop.
_myContainer = [[UILabel alloc] initWithFrame:frame];
_myContainer.backgroundColor = [UIColor greenColor];
[self.view addSubview:_myContainer];
UIView *subview = [[UIView alloc] initWithFrame:_myContainer.bounds];
subview.backgroundColor = [UIColor yellowColor];
[UIView transitionWithView:_myContainer duration:0.5 options:UIViewAnimationOptionTransitionFlipFromBottom animations:^{[_myContainer addSubview:subview];} completion:^(BOOL finished) {NSLog(@"I finished from up");}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment