見方を変えなければなりません。ビューには、次のコードのボタンがあります。
FormazioneViewController *formazioneC = [[FormazioneViewController alloc] initWithNibName:@"FormazioneView" bundle:nil];
self.formazioneViewController= formazioneC;
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:1.25];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop)];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self viewWillDisappear:YES];
[self viewDidDisappear:YES];
[self.view addSubview:formazioneViewController.view];
[formazioneViewController viewWillAppear:YES];
[formazioneViewController viewDidAppear:YES];
[UIView commitAnimations];
スーパービューを追加すると、このビューに戻る必要があり、次のコードでボタンを使用します。
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:1.25];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationDidStop)];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self viewWillDisappear:YES];
[self viewDidDisappear:YES];
[self.view removeFromSuperview];
[****** viewWillAppear:YES];
[****** viewDidAppear:YES];
[UIView commitAnimations];
viewWillAppear および ViewDidAppear メソッドを呼び出さなければならないオブジェクトは何ですか?? ありがとう
私の悪い英語でごめんなさい!