How Can I Float A View Over A Displayed Popover, in IOS?

164 views Asked by At

I can produce a small project to illustrate this, but I think it's faster, and easier, if I simply describe it.

I have this widget I wrote. It displays a "floating" UITableView over everything else. It does this by adding itself to the main window root view controller.

However, if I am trying to display it in a popover, the table comes up under the popover. I should add that it will overlap the popover boundaries. It should not be contained in the popover.

What's the most correct way to get it to appear over the popover?

1

There are 1 answers

2
Chris Marshall On BEST ANSWER

OK. I solved this, by simply attaching the table to the main view.window instance.

This seems to work in all my tests (including things like split view, and popover view).

I have not read anything that indicates that I should not do this. Apple has already passed a couple of TestFlight releases that have it, so it didn't ring any alarms for them.