私が持っている 2 つの 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;
...
私は何を間違っていますか?