Im using [[self modalViewController] dismissModalViewControllerAnimated:YES];
to remove a view. How do I apply a cross-dissolve animation to this? By using this code only, it shows a default 'slide down' animation.
Asked
Active
Viewed 294 times
1

Rohith Nandakumar
- 11,367
- 11
- 50
- 60
3 Answers
4
try this
[self modalViewController].modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

visakh7
- 26,380
- 8
- 55
- 69
0
-
Thats works for presentModalViewController, but how do I use that for dismissing the view? – Rohith Nandakumar Feb 25 '11 at 11:49
-
set the transition style, then call -dismissModalViewControllerAnimated:YES – Luke Feb 26 '11 at 05:41