According to the docs: > @property(nonatomic, assign) BOOL providesPresentationContextTransitionStyle > Discussion > If the value of this property is YES and the value of the > definesPresentationContext property is YES, then the modal transition style > of the presenting view controller is used. Otherwise, the modal transition > style of the presented view controller’s modal transition style is used.
So I tried it and it doesn't work. I simply used Xcode's built-in Utility Application template, which presents and dismisses a modal view right out of the box: - (IBAction)showInfo:(id)sender { FlipsideViewController *controller = [[FlipsideViewController alloc] initWithNibName:@"FlipsideViewController" bundle:nil]; controller.delegate = self; controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; // here are my additions self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; // * self.providesPresentationContextTransitionStyle = YES; // * self.definesPresentationContext = YES; // * [self presentModalViewController:controller animated:YES]; } The three marked lines are my only change to the template. I am doing exactly what the docs say to do. But it isn't working, or rather it's working in a very lame and partial way: the transition is flip horizontal when the modal view is shown, but it is cross dissolve when the modal view is dismissed. Other combinations of the presented modal view controller's transition style and the presenting modal view controller's transition style get even weirder and can even cause the app to crash. What most amazes me is that I can't find anyone else complaining about this online. Hence this note. Either I'm doing this totally wrong or the docs are describing it incorrectly or no one in the world has actually tried this except me! Thx - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news and reviews since 1990, http://www.tidbits.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com