Add a UIViewController on top of all views, regardless of whether rootViewController changed

Viewed 45

I have a framework and I'm trying to display a UIViewController over the top of all of the views, in a certain circumstance, regardless of whether the rootViewController of the UIWindow changes.

I initially tried presenting on top of the rootViewController of the keyWindow, but when that rootViewController changes the presentation of my view controller also disappears. I then tried adding my own UIWindow and setting the root view controller to my view controller, but that has the same issue if someone accesses and changes the keyWindow's root view controller.

Is there any better way to do this?

0 Answers
Related