jjgraz
May 12, 2009, 01:05 AM
I currently have an application which opens to a viewController and runs for 5 seconds before removing the viewController and entering myApp. It works Great.....However....the transition between the two is rough. Is there a way to make the transition between the two ViewControllers smooth....a fade, or anything? Below is the code in appDelegate in case your not understanding. I appreciate it very much.
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSTimer *currentTimer = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(theActionMethod) userInfo:nil repeats:NO];
[window addSubview:viewController.view];
[window makeKeyAndVisible];
}
- (void)theActionMethod {
[viewController.view removeFromSuperview];
[window addSubview:rootController.view];
}
Thank you.
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSTimer *currentTimer = [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(theActionMethod) userInfo:nil repeats:NO];
[window addSubview:viewController.view];
[window makeKeyAndVisible];
}
- (void)theActionMethod {
[viewController.view removeFromSuperview];
[window addSubview:rootController.view];
}
Thank you.
