[英]iPad iTunes Animation
Within the iTunes Music Store app on the iPad, if you select an album, a modal view flips out of the album over to the middle of the screen. 在iPad上的iTunes Music Store应用程序中,如果选择了专辑,则模式视图会从专辑中翻转到屏幕中间。 Is this a built in animation or a custom built one?
这是内置动画还是定制动画? How would I go about replicating it?
我将如何复制它?
This can be seen about 30 seconds into this video . 可以在此视频中看到大约30秒。
Thanks 谢谢
This is a built-in animation. 这是一个内置动画。 Create the View Controller you want to display in the modal view and then present it within a Navigation Controller.
创建要在模式视图中显示的View Controller,然后将其显示在Navigation Controller中。
ViewController *viewController = [[ViewController alloc] initWithNibName:@"ModalEvent" bundle:nil];
viewController.delegate = self;
modalNavController = [[UINavigationController alloc] initWithRootViewController:viewController];
modalNavController.modalPresentationStyle = UIModalPresentationFormSheet;
modalNavController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:modalNavController animated:YES];
[viewController release];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.