0

見方を変えなければなりません。ビューには、次のコードのボタンがあります。

    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 メソッドを呼び出さなければならないオブジェクトは何ですか?? ありがとう

私の悪い英語でごめんなさい!

4

1 に答える 1

0

この方法を書いたことがありますか、

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
    return YES;
}
于 2012-06-13T08:59:26.580 に答える