1

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.

Rohith Nandakumar
  • 11,367
  • 11
  • 50
  • 60

3 Answers3

4

try this

[self modalViewController].modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
visakh7
  • 26,380
  • 8
  • 55
  • 69
0

There is an answer to this question here:

Community
  • 1
  • 1
Luke
  • 2,562
  • 1
  • 18
  • 35
0
self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve
visakh7
  • 26,380
  • 8
  • 55
  • 69