modalviewcontrollerを閉じる前に、カスタムアニメーションを実行しようとしています。アニメーションは正常に機能しますが、表示されているView Controllerがまだロードされていないと想定しているため、結果は黒い画面になります。presentingViewControllerをロードし、アニメーションを実行してから、modalviewcontrollerを閉じる方法はありますか。
注:presentingViewControllerは現在、モーダルビューを表示した実際のuiviewcontrollerではなく、私のタブバーコントローラーを指しています。
ありがとう!
[UIView beginAnimations:@"suck" context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:103 forView:self.navigationController.view cache:YES];
[[self navigationController].view setHidden:YES];
[UIView setAnimationPosition:CGPointMake(260, 431)];
[UIView commitAnimations];