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,317
  • 11
  • 49
  • 60

3 Answers3

4

try this

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

There is an answer to this question here:

Community
  • 1
  • 1
Luke
  • 2,552
  • 1
  • 17
  • 34
0
self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve
visakh7
  • 26,340
  • 8
  • 54
  • 69