Iphone 使用块设置UINavigationController过渡的动画

Iphone 使用块设置UINavigationController过渡的动画,iphone,objective-c,ios,xcode,objective-c-blocks,Iphone,Objective C,Ios,Xcode,Objective C Blocks,有人能说出下面代码片段的块动画等价物吗 [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:0.75]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO]; NextViewCo

有人能说出下面代码片段的块动画等价物吗

[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight 
           forView:self.navigationController.view cache:NO];

NextViewController *next = [[NextViewController alloc] 
           initWithNibName:@"NextViewController" bundle:nil];

[self.navigationController pushViewController:next animated:YES];
[next release];
[UIView commitAnimations];

这比我在堆栈上看到的其他一些方法更容易解决。谢谢你们,这比我在stack上看到的其他方法要简单得多。非常感谢。
UIView: + (void)transitionFromView:(UIView *)fromView toView:(UIView *)toView duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options completion:(void (^)(BOOL finished))completion
NextViewController *next = [[NextViewController alloc] initWithNibName:@"NextViewController" bundle:nil];

[UIView transitionWithView:self.navigationController.view 
                  duration:0.75 
                   options:UIViewAnimationOptionTransitionFlipFromRight 
                animations:^{
                 [self.navigationController pushViewController:next animated:NO];
                } 
                completion:nil];