Is it possible to determine if the current UIView has a UIAlertView on display (other than setting a variable every time a UIAlertView is created).
I'm thinking something along the lines of
if ([self.view.subviews containsObject:UIAlertView]) { ... }
But that obviously doesn't work.
I think it will work:
This will not work in iOS7 and above.
[alertView Show] adds subview on main window I guess.If you store the UIAlertView as a property on the view controller that is displaying it and then run your code:
That should work.