【发布时间】:2009-07-19 08:03:33
【问题描述】:
当我开始从 UiView 到此视图的过渡(UIViewAnimationTransitionFlipFromLeft)时,我有一个带有 UIToolBar 的 UIView,该按钮仅在过渡结束时出现 为什么 ?请帮助我
谢谢
代码:
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:0.90];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
UIViewController *coming = nil;
UIViewController *going = nil;
UIViewAnimationTransition transition;
going = languageMenu;
coming = loadingmenu;
transition = UIViewAnimationTransitionFlipFromLeft;
[UIView setAnimationTransition: transition forView:self.view cache:YES];
[coming viewWillAppear:YES];
[going viewWillDisappear:YES];
[going.view removeFromSuperview];
[self.view insertSubview: coming.view atIndex:0];
[going viewDidDisappear:YES];
[coming viewDidAppear:YES];
[UIView commitAnimations];
【问题讨论】:
-
你能展示一段代码吗?
-
如果我启用缓存:否 按钮在过渡期间出现,但一切都很慢?有什么想法吗?
标签: iphone button transition uitoolbar