Revision: 26247
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 21, 2010 13:49 by BenClayton
Initial Code
// get the view that's currently showing UIView *currentView = self.view; // get the the underlying UIWindow, or the view containing the current view view UIView *theWindow = [currentView superview]; // remove the current view and replace with myView1 [currentView removeFromSuperview]; [theWindow addSubview:view1]; // set up an animation for the transition between the views CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromRight]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [[theWindow layer] addAnimation:animation forKey:@"SwitchToView1"];*/
Initial URL
Initial Description
Initial Title
iphone: transition between views
Initial Tags
Initial Language
Objective C