私は 2 つの UIViewControllers を持つかなり単純なアプリを持っています。1 つはメイン ビュー、2 番目はオプション ページです。あるものから別のものへとアニメーション化すると、回転が完了するまで UISwitches やその他のコントロールが完全に描画されません。アニメーションを使用しなくても問題はありません。すべてが正しく表示されます。コードは次のとおりです。
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
if (self.optionsViewController.view.superview == nil)
{
if (self.optionsViewController == nil)
{
self.optionsViewController = [[OptionsViewController alloc] initWithNibName:nil bundle:nil];
}
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
[self.view insertSubview:self.optionsViewController.view atIndex:127];
}
[UIView commitAnimations];