用于Modal UIViewController的UIViewAnimationTransitionCurlDown或UIViewAnimationTransitionCurlUp

时间:2011-09-30 03:43:12

标签: uiviewcontroller modalviewcontroller uiviewanimationtransition

我正在以模态方式添加UIViewController,并希望应用UIViewAnimationTransitionCurlDown转换。下面的代码不能很好地工作。它试图过渡,但很快就会震撼视野,没有任何反应。请建议可以做些什么。这是我第一次以模态方式添加UIViewController。

aboutViewController = [[AboutViewController alloc]
                       initWithNibName:@"AboutViewController" bundle:nil];
[self presentModalViewController: aboutViewController animated: YES];
UIViewAnimationTransition trans = UIViewAnimationTransitionCurlDown;
[UIView beginAnimations: nil context: nil];
[UIView setAnimationTransition: trans forView: [aboutViewController view] cache: YES];
[UIView commitAnimations];

0 个答案:

没有答案