UIViewAnimationTransitionCurlDown или UIViewAnimationTransitionCurlUp для модального UIViewController - PullRequest
0 голосов
/ 30 сентября 2011

Я добавляю 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];
...