iPad iTunes Animation

北战南征 提交于 2019-12-11 15:48:31

问题


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. 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.

Thanks


回答1:


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.

    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];


来源:https://stackoverflow.com/questions/2949538/ipad-itunes-animation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!