Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[self navigationController] presentModalViewController:modalViewController animated:YES];
- [self.navigationController dismissModalViewControllerAnimated:YES];
- UIViewController *controller = [[[MyViewController alloc] init] autorelease];
- UIViewAnimationTransition trans = UIViewAnimationTransitionCurlUp;
- [UIView beginAnimations: nil context: nil];
- [UIView setAnimationTransition: trans forView: [self window] cache: YES];
- [navController presentModalViewController: controller animated: NO];
- [UIView commitAnimations];
- UIViewController *controller = [[[MyViewController alloc] init] autorelease];
- controller.view.alpha = 0.0;
- [navController presentModalViewController: controller animated: NO];
- [UIView beginAnimations: nil context: nil];
- controller.view.alpha = 1.0;
- [UIView commitAnimations];
- modalViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
- [[self navigationController] presentModalViewController:modalViewController
- animated:YES];
- modalController.view.alpha = 0.0;
- [self.view.window.rootViewController presentModalViewController:modalController animated:NO];
- [UIView animateWithDuration:0.5
- animations:^{modalController.view.alpha = 1.0;}];
Add Comment
Please, Sign In to add comment