1

Let´s see, I am developing an app which uses some ModalViewCotrollers. When I show any of these modals, everything is going OK, I can work with it and interact with his content. The problem comes when I try to do:

[self dismissModalViewControllerAnimated:YES];

This problem, only happens in lower version than iOS 5.0

The modals are called from my DetailViewController (in Master-Detail app).

Any suggestion??

Thanks everybody in advanced!!!

Jav_Rock
  • 22,059
  • 20
  • 123
  • 164
MurdockPNR
  • 36
  • 4

1 Answers1

1

Have you tried if you are dismissing from the correct view controller?? Like this:

[self.parentViewController.parentViewController dismissModalViewControllerAnimated:YES];

Anyway, I found a couple of good links which could be helpful for you:

Modal view controller won't dismiss itself

dismissModalViewControllerAnimated: (and dismissViewControllerAnimated) crashing in iOS 5

Community
  • 1
  • 1
TurboManolo
  • 281
  • 3
  • 15
  • i haven´t found the solution to fix this problem, but, at the moment, i show Modal into the splitViewController. [appDelegate.splitViewController presentModalViewController:articuloWeb animated:YES]; So, the modal will disappear correctly. Thanks for everybody anyway!! – MurdockPNR Jan 20 '12 at 11:32