私は以下のようにrootViewControllerとして割り当てられているViewControllerを持っています:
self.viewCntrl = [[ViewController alloc]initWithNibName:@"ViewController" bundle:nil];
self.window.rootViewController = self.viewCntrl;
そして、同じビューコントローラにボタンがあり、次のようにボタンクリックでトランジションアニメーションを実行しています。
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view.superview cache:YES];
しかし、私がこのように書くとき、それは機能しません:
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
ここで、selfはViewControllerのオブジェクトであるため、self.window.rootViewControllerに割り当てられているだけのViewControllerです。では、なぜアニメーション化するのにself.viewではなくself.view.superviewが必要なのですか?