iPad iTunes Animation

2019-09-14 04:50发布

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条回答
再贱就再见
2楼-- · 2019-09-14 05:11

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];
查看更多
登录 后发表回答