ios - Can't present view controller in a UIPopoverController -
I have a number of container ideas in a navigation controller. Now I'm trying to use the UIPopoverController
to display a scene. This view was already presented to the user first - it was in a container view embedded in a navigation controller If I try to render in a popover then
tried to present an active controller to the application
but the scene is not active . Is it just anywhere in the navigation controller stack, does it mean that you can present each scene only once?
Edit:
The structure of this problem looks like the following:
See Controller> Container A (VC1, VC2, VC3)> Container B (VC2, VC4)
should now be offered as a popup on container B VC3, an incident should contain VC2 in Container B (C # Event) Container B should present a popup -> The app crashes and I get the above error message.
Now I tried to present popup directly from VC2. It seems to work, maybe this is a problem because I am reusing pop-up from Container B. I see it.
Now I have created a new installation of UIPopoverController
in container B, where The incident has been caught. It works as expected and does not crash now.
Still do not know why I can not reuse the popup with contentViewController
or this is because I am using presentPopoverFromRect
And second time the presentPopoverFromBarButtonItem
?
Comments
Post a Comment