Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // popView is the existing pop up view to be replaced
  2. MyPopupViewController *newPopView = [[MyPopupViewController alloc] initWithData:...];
  3. [UIView animateWithDuration:0.4
  4. delay:0
  5. options:UIViewAnimationOptionCurveEaseInOut
  6. animations: ^{
  7. [self.view addSubView: newPopView.view];
  8. [popView removeFromSuperView];
  9. [UIView setAnimationTransition: UIViewAnimationTransitionCurlUp
  10. forView:popView cache:YES];
  11. } completion:^(BOOL finished) { popView = newPopView }
  12. ];
  13. [newPopView release];
Add Comment
Please, Sign In to add comment