I'm currently having some trouble with modal views and popovers. It might be the same problem, but I'm not sure.
The problem I'm having with modal views is that I can't change the animation or transition style. For instance, I write
self.modalPresentationStyle = UIModalPresentationPageSheet;
self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:IpModal animated:YES];
but the modal view still appears full screen with its original transition style.
Also, the problem I'm having with popovers is pretty similar. Even though I call the dismissPopover:animated: method with "NO" as the parameter, the transition is still animated.
Thanks in advance.
modalPresentationStyle
and modalTransitionStyle
apply to the view controller that is to be presented modally, not the controller doing the presenting.
Your code should be
IpModal.modalPresentationStyle = UIModalPresentationPageSheet;
IpModal.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:IpModal animated:YES];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With