Guest User

Untitled

a guest
Jun 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // Start Animation Block
  2. CGContextRef context = UIGraphicsGetCurrentContext();
  3. [UIViewbeginAnimations:nil context:context];
  4. [UIViewsetAnimationTransition:UIViewAnimationTransitionFlipFromLeft
  5. ¯forView:[self superview] cache:YES];
  6. [UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];
  7. [UIViewsetAnimationDuration:1.0];
  8. // Animations
  9. [[self superview] exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
  10. // Commit Animation Block
  11. [UIViewcommitAnimations];
Add Comment
Please, Sign In to add comment