Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jjgraz

macrumors regular
Original poster
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.

Code:
- (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.
 
Take a look at CATransition, which is demonstrated in the ViewTransitions Apple sample code.

It has a variety of view transitions, including fade.

(you're adding the code after the "window addSubview" line)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.