I am attempting to create a UIView
(and associated UIViewController
) which mimic the behaviour of UIAlertView
. Given my requirements it seemed much neater to create my own implementation from scratch than attempt to subclass and modify UIAlertView
. In order to do this I am getting a reference to the app delegate and then adding the UIViewController.view
(with an alpha of around 0.6) as a subview of the main app window. This means it will appear on top of all other views on screen and emulate the dimmed background found in the UIAlertView
.
All is working well, except the UIView
(i.e. UIViewController.view
) is not covering the status/carrier bar at the top of the screen. This means that all of the screen is dimmed except the carrier bar, which looks a bit strange! Is there any way to get the UIView
to appear on top of the carrier bar? I have heard musings about adding a second UIWindow
to the app, but this does not seem advisible (as the Apple docs say that you should only ever have one UIWindow
in the app) and, even if this is the best solution, I am unsure about the technical implementation of such a solution.