Cocoa touch 执行makeKeyAndVisible时两个UIViewController之间的动画

Cocoa touch 执行makeKeyAndVisible时两个UIViewController之间的动画,cocoa-touch,cocoa,Cocoa Touch,Cocoa,我正在尝试制作一个动画,在我拥有的两个UIViewController之间切换。但当动画运行时,旧的UIViewController为白色 // viewController is the new UIViewController [UIView animateWithDuration:0.6 delay:0 options:UIViewAnimationOptionCurveLinear animations:^(void){

我正在尝试制作一个动画,在我拥有的两个UIViewController之间切换。但当动画运行时,旧的UIViewController为白色

    // viewController is the new UIViewController 
[UIView animateWithDuration:0.6 
        delay:0 
    options:UIViewAnimationOptionCurveLinear 
        animations:^(void){
             [viewController.view setTransform:CGAffineTransformMakeTranslation(0, -460)];
        }
        completion:^(BOOL finished){
             if (finished){
                //
             }
        }
    ];

    [[[[UIApplication sharedApplication] delegate] window] setRootViewController:viewController];
    [[[[UIApplication sharedApplication] delegate] window] makeKeyAndVisible];
我有一个始终具有UIViewController的对象:

@interface ManagerViews : NSObject {

    UIViewController *oneController;
    UIViewController *twoController;
    ...
}
@property(nonatomic, retain) UIViewController *oneController;
@property(nonatomic, retain) UIViewController *twoController;
...

我做错了什么?

您是否尝试过将旧的UIViewController设置为“nil”或(我的Objective-C专业知识有点生疏)重置?

我的意思是释放,而不是重置。对不起,我对老UIViewController什么都不做你可能会觉得这很有趣