押すとView Controllerを押すボタンがありますが、カスタムアニメーションを使用しているためpushViewController: childController animated:
、NOに設定されています。私がやりたいことは、私の- (void)viewWillAppear:(BOOL)animated
メソッドでこのカスタム アニメーションを検出し、このような if ステートメントを書くことです。
- (void)viewWillAppear:(BOOL)animated {
if (customAnimation occured) {//Do this}
else {//Do this}
}
これは、View Controller をプッシュするボタンのメソッドです。
- (void)nextPressed:(id)sender {
childController = [[CategoryOneDetailController alloc] initWithNibName:xibDownName bundle:nil];
[UIView beginAnimations: @"Showinfo"context: nil];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0.75];
[self.navigationController pushViewController: childController animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.navigationController.view cache:NO];
[UIView commitAnimations];
[childController release];
}
どんな助けでも大歓迎です、ありがとう、サミ。