I have referred the following links for this issue, but neither of the solutions worked for me:
I think these solutions don't work for iOS7.
So now how would I be able to find out whether there is any UIAlertView
open, when my application enters in background state.
I want to dismiss the UIAlertView
before going into the background.