My iOS app freezes but no error appears

Krunal picture Krunal · Jan 29, 2014 · Viewed 7.1k times · Source

Does any body know what I need to check if app freezes after some time? I mean, I can see the app in the iPhone screen but no view responds.

I did some google and i found that, i've blocked the main thread somehow.

But my question is how to identify which method causes blocking of main thread? is there any way to identify?

Answer

Simon picture Simon · Jan 29, 2014

Launch your app and wait for it to freeze. Then press the "pause" button in Xcode. The left pane should show you what method is currently running.