In iOS7, the UIAlertView
window does not appear in -[UIApplication windows]
. In fact, the UIAlertView
itself is never added to any window, -[UIAlertView window]
is always nil
. Instead, the alert view manages a variety of undocumented views placed in -[UIApplication keyWindow]
with no reference back to the alert view.
Your only real option in iOS7 is to actually keep track of your alert views.