Friday, 15 July 2011

ios - warning attempt to dismiss from view controller while a presentation or dismiss is in progress -


Steps to reproduce -

  1. on the tap of the root view controller's button Open the modal view controller.
  2. In the Model View Controller - on the button, create the Segue to show the popover view controller.
  3. Tap on the button to see Popover view controller.
  4. Now on the screen to dismiss many tap popover view controllers, it redirects directly to the Rootview controller. (Dismissal Modal View Controller).

Another way -

  1. Create the IBAction to show the popover view controller.
  2. Tap on the button to see Popover view controller.
  3. At this time it only rejects the pop view controller (RootView controller is not being redirected)

Why is this strange behavior when your popover view The controller is shown in two different ways? I am working on a large project already developed and now it is not possible for me to proceed with the second approach. Please help me know better way to solve it.

You will need to create a representative method to dismiss your popover view controller in your model view controller. Afterwards, then call your Model View controller representative method to dismiss.

  [Self firearm visual controller unpaid: Yes complete: ^ {ModalViewControllerDelegate.dismissView; }];  

No comments:

Post a Comment