I'm working on a long-standing, fairly-complex iOS Cocoa app, and I'm trying to fix performance when resuming from the inactive (say, locking the device). The problem appears on all versions of the iPhone (we support back to the 3G).
The steps are:
- Run the app.
- Lock the screen with the sleep/wake button (lock button).
- Resume the app. The app appears on the same view that it showed before, but it's non-responsive. Also, in the OS bar, the carrier, signal, battery, and location icons appear, but the clock is missing.
- After about a second, the clock comes back, and at about the same time, my app is responsive.
I would say that it's an iOS thing, but most apps don't take nearly that long to come back, including to show the clock.
What is the significance of the rendering of the clock in the OS task bar when resuming from sleep? I need to know what period of time this represents (after this event/action/delegate/etc, but before another one) so I can narrow down the point of the code to examine.
When I debug with Xcode, this doesn't happen. It also doesn't happen in the simulator, ever.
Thanks!