title: iPhone simulator minimizes the application
body: <p>I'm debugging my app with the simulator. And for some moment in concrete situation the app gets mimimized. I think there is some problem in my code (Most likely some variable is not initialized, because sometimes everything works) . But how can I catch this moment.</p>
  
  <p>In xcode is still written that the program is running and I can put breakpoints and the will trigger.</p>
  
  <p>And if i will reopen my application it will continue working... 
  When using device the are no problems too...</p>
  
  <p>How can i catch this moment and pause the program to view a callstack.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I Think the problem is here:
  <a href="https://stackoverflow.com/questions/5054247/objective-c-singleton-object-does-not-working-as-expected">Objective-c singleton object does not working as expected</a></p>