-
Notifications
You must be signed in to change notification settings - Fork 220
Overlay View Not going away #30
Comments
+1 |
Confirmed. Programmatically dismissing the view via dismissPopupViewControllerWithanimationType: leaves the background. I believe the problem is the use of self in the runtime calls for associative storage. When you create a detail view controller that you want to show as a popup, you call presentPopupViewController on the currently visible view controller, which we'll call the parent. However, I have a dismiss button in the detail popup view that calls a method on its view controller, and it is from here that I need to dismiss the popupview. So I call dismissPopupViewControllerWithanimationType with self now as the detail view controller. This doesn't work because the context for self has changed between presentation and dismissal from the parent view controller to the detail view controller. Consequently, I need to get a reference back to the parent view controller and call the dismiss method on that. This is unfortunate, because now my detail view controller is coupled to the parent. |
in case anyone still has this problem, i fixed it by replacing line 80 with this: |
thanks @gabreho for this fix :-) |
Thank you for the fix @gabreho, this should be implemented into the library |
Great work, |
You have to tap on the view you present the modal on to get rid of the overlay view...
The text was updated successfully, but these errors were encountered: