iphone app sporadically hangs for a few seconds

When I run my Iphone app on my Ipod touch, it runs fine most of the time. But every so often, it will hang for a short while -- anywhere from 5 to 15 seconds. After the hang, it resumes running normally.

The strange thing is that to all appearances, the app's demands on the system should be fairly steady. It is doing a lot of dragging stuff around with calls to TouchesMoved. But it drags a maximum of two labels at a time.

How might I go about tracking down such a problem?

Answers


A good start would be to run your app under Shark to see where it is spending most time during those periods.


Need Your Help

how to use jquery function wrap

jquery

<div data-filter="true" data-input="#filterBasic-input" data-theme="b" data-role="collapsible-set" data-inset="true" id="filter" class="wrapcoll">

Locate value in the end of a string

c# regex

If the bracket and the data inside of the bracket is in the end of a string value, then it should be true.