Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My iOS app freezes but no error appears

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?

like image 418
Krunal Avatar asked Jan 29 '14 09:01

Krunal


1 Answers

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.

like image 128
Simon Avatar answered Sep 19 '22 06:09

Simon