Revision: 6851
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 19, 2008 13:58 by jonathanbp
Initial Code
- (void) flipView { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:kTransitionDuration]; [UIView setAnimationTransition:([mainView superview] ? UIViewAnimationTransitionFlipFromLeft : UIViewAnimationTransitionFlipFromRight) forView:self.view cache:YES]; if ([flipView superview]) { [flipView removeFromSuperview]; [self.view addSubview:mainView]; } else { [mainView removeFromSuperview]; [self.view addSubview:flipView]; } [UIView commitAnimations]; }
Initial URL
Initial Description
the controllers view is setup s.t. it adds the mainView as a subview to its default view in the init method
Initial Title
flipping a view on the iphone sdk
Initial Tags
iphone
Initial Language
Objective C