我正在添加一个NavigationController作为我主视图的子视图,带有翻转动画(就像实用程序app / flipview一样)。
以下是我的表现:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.7];
[UIView setAnimationTransition:([self.tableController.view superview] ? UIViewAnimationTransitionFlipFromLeft : UIViewAnimationTransitionFlipFromRight) forView:self.tableHostView cache:YES];
[self.tableController.view removeFromSuperview];
settingsView* backView1 = [[settingsView alloc] initWithNibName:@"settingsView" bundle:nil];
backView1.delegate = self;
UINavigationController* settingsNavStack = [[UINavigationController alloc]initWithRootViewController:backView1];
[backView1 release];
settingsNavStack.view.frame = CGRectMake(0, 0, 320, 460);
settingsNavStack.navigationItem.title = @"Settings";
[self setBackView:settingsNavStack];
[settingsNavStack release];
[self.tableHostView addSubview:self.backView.view];
[[self backView]setDelegate: self];
当它加载时,视图非常好。但是,导航栏会保持白色,直到动画结束后的.2秒。
任何人都知道为什么导航栏不会立即显示?
答案 0 :(得分:0)
关闭了chaching,使它看起来好一点。但它仍有问题......