Post

Replies

Boosts

Views

Activity

How to present a UIAlertController from controller in main window and make it appear above a controller in an overlaid UIWindow
In my app I have a second UIWindow that appears above the main window in order to present a small floating view controller that appears above other view controllers in the app. Touches pass through the top window to the lower (main) window. Whenever the main window presents a UIAlertController the alert appears behind the floating view controller in my top window. I was under the impression that alerts are presented in their own window with a window level of UIWindowLevelAlert, which should place them above any controller that belongs to a window at UIWindowLevelNormal (which is the level of both my main window and top window).How can I get alerts presented by my lower (main) window to appear above controllers in my overlay window?
2
0
6.3k
Oct ’18