I am having a problem by my UIAlertView
. I am using a NSTimer
for showing an UIAlertView
on a moment when my loop is done.
The problem:
My UIAlertView
is popping up on my previous ViewController
when I am pressing the back button fast, before the loop is done. So on that moment when the UIAlertView
is showing up, my app will crash when pressing a button on the UIAlertView
.
How can I check that the ViewController
is still the delegate or something that it does not show up in an other view?