In my iOS application, I have a timer firing up, and when it fires, I need to be able to detect whether there's an Alert (UIAlertView) or an Action Sheet (UIActionSheet) open.
One way would be to modify the code presenting the alerts/actionsheets - but unfortunately this is not an option in my case.
So, the question is - is there a way of knowing/detecting whether an alert or action sheet have been opened?
Is there any notifications sent upon opening, or any traversal of the view hierarchy to detect it?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…