Flip UIView

by alex 16. October 2009 02:15

-(IBAction)flipAction{

NSLog(@"flip");

[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:1];

[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight

  forView:self.view cache:YES];

if ([discoView superview]){

[discoView removeFromSuperview];

[termsView addSubview:flipButton];

[self.view addSubview:termsView];

}

else

{

[termsView removeFromSuperview];

[self.view addSubview:discoView];

[discoView addSubview:flipButton];

}

[UIView commitAnimations];

}


Currently rated 3.5 by 2 people

  • Currently 3.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen