0

我正在模态添加 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];
4

0 回答 0