
September 8th, 2010, 10:18 AM
|
|
Registered User
|
|
Join Date: Sep 2010
Posts: 6
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 0
|
|
|
Flip Animation
I am trying to use a "Flip" transition/animation. On both sides I want to have 2 separate UITables.
The following code that I am trying to do this with works fine, but it obviously "Flips" with the same view:
Code:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];
[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[UIView commitAnimations];
I don't know where I would include the second UITable for the backside?
|