I am currently showing a modal UIViewController in the formSheet style, which was presented by coverVertical. I am trying to present another modal UIViewController from it using currentContext for presentation style and flipHorizontal for animation style. It really works, but there is a solid white white background behind the flip. Any advice on how to successfully introduce another model modular UIViewController using the flipHorizontal style from a pre-existing modal UIViewController in FormSheet format will be appreciated, please! thanks
the code:
// Loading of first modalVC - (void)showModalVC { Modal1VC *modal1VC = [[Modal1VC alloc] init]; modal1VC.modalPresentationStyle = UIModalPresentationFormSheet; modal1VC.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:modal1VC animated:YES]; [modal1VC release]; modal1VC.view.superview.bounds = CGRectMake(0, 0, 400, 400); } // Loading of second modalVC in Modal1VC - (void)buttonTapped:(id)sender { UIViewController *modal2VC = [[UIViewController alloc] init]; modal2VC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; modal2VC.modalPresentationStyle = UIModalPresentationCurrentContext; modal2VC.view.backgroundColor = [UIColor greenColor]; [self presentModalViewController:modal2VC animated:YES]; [modal2VC release]; modal2VC.view.superview.bounds = CGRectMake(0, 0, 400, 400); }
cocoa-touch ipad
CastToInteger
source share