Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Start Animation Block
- CGContextRef context = UIGraphicsGetCurrentContext();
- [UIViewbeginAnimations:nil context:context];
- [UIViewsetAnimationTransition:UIViewAnimationTransitionFlipFromLeft
- ¯forView:[self superview] cache:YES];
- [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];
- [UIViewsetAnimationDuration:1.0];
- // Animations
- [[self superview] exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
- // Commit Animation Block
- [UIViewcommitAnimations];
Add Comment
Please, Sign In to add comment