I have a modal view controller that gets presented on iPad. Inside that modal I have a UIPopoverController
that is presented to the user (triggered by a button press). What's crazy is that the popover is getting instantiated and rendered, but directly underneath the modal. I am presenting from a UIBarButtonItem
, so there shouldn't be any view hierarchy issues on where it should be presented from. Doing a recursiveDescription
on the window reveals that the view hierarchy is correct with the popover being on top, despite it visually being drawn underneath.
Any thoughts in what could be causing this? How do I fix it?
Update: I decided to try presenting a form sheet modal on the modal and experienced the same problem: the form sheet modal is rendered underneath the first modal. Truly puzzling...