【发布时间】:2009-05-27 10:11:15
【问题描述】:
我有一个核心动画块,我在其中调用将加载视图控制器的方法。两个视图控制器之间发生了自定义转换。然而,当视图控制器构建界面时,所有这些东西都会受到核心动画的影响。虽然它会产生一些有趣的效果,但我不希望这样;)
[UIView beginAnimations:@"jump to view controller" context:self];
[UIView setAnimationDuration:0.55];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
// some animated property-changes here...
[self loadViewControllerForIndex:targetIndex]; // everything that happens in this method shall not be animated
UIViewController *controller = [viewControllers objectAtIndex:targetIndex];
[controller viewWillAppear:YES];
[controller viewDidAppear:YES];
[UIView commitAnimations];
很遗憾,我无法将那部分移出街区。
【问题讨论】:
标签: iphone cocoa-touch uikit core-animation