Reply:
Add animation will not. . .
[Self presentModalViewController: <# (UIViewController *) modalViewController #> animated: <# (BOOL) animated #>]
Achieve page jump, jump to that page to
Then through the [self dismiss,. . Method] can jump back to the page system comes with animation
Reply:
# Import
ViewController * controller = [[ViewController alloc] initWithNibName: @ "ViewController" bundle: nil];
controller.modalTransitionStyle = kCALayerRightEdge;
/ / Controller.modalTransitionStyle = kCALayerRightEdge;
/ / Controller.modalTransitionStyle = kCALayerLeftEdge;
/ / Controller.modalTransitionStyle = kCALayerBottomEdge;
/ / Controller.modalTransitionStyle = kCALayerTopEdge;
/ / Controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
/ / Controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
/ / Controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
/ / Controller.modalTransitionStyle = UIModalTransitionStylePartialCurl;
/ / Controller.modalTransitionStyle = kCATransitionPush;
/ / Controller.modalPresentationStyle = UIModalPresentationCurrentContext;
/ / Controller.modalInPopover = UIPopoverArrowDirectionRight;
/ / Controller.modalInPopover = UIPopoverArrowDirectionLeft;
/ / / Controller.modalTransitionStyle = UIViewAnimationOptionTransitionCurlUp;
/ / Controller.modalPresentationStyle = UIModalPresentationFormSheet;
[Self presentModalViewController: controller animated: YES];
Reply:
Not mean that there is little in the current view of view, such as a button on it, usually hidden, and then click another button in the button displays, display button when there is no animation.
Reply:
[UIView beginAnimations: nil context: nil];
button.alpha = 1.0;
[UIView commitAnimations];
No comments:
Post a Comment