• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Delays in awaking iOS app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delays in awaking iOS app


  • Subject: Delays in awaking iOS app
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 29 Jan 2014 22:02:24 +0700

I have an app with a button.
I start the app, then put the iPhone to sleep.
I wake the phone up and press the button repeatedly, until something happens.

There is an NSLog() in applicationWillEnterForeground: and in the action method of the button.
The time difference between these two is 1.1 ... 1.4 seconds.

Did the same with Time Profiler in Instruments: 1.357 seconds elapsed time, Running Time 0.044 sec.
That is: my app was doing nothing for about 1.3 seconds.

This is really annoying: one wakes up the phone, the app looks responsive, so one taps the button - and nothing happens.
One has to wait a second, tap the button again - and then it works.

How can I find out what is going on?
How to avoid this?

Gerriet.

iOS 7.0.4

P.S. Made a new Single View Application (which has nothing except a Done button in a Toolbar at the bottom) and did run it on iPhone 4s:

2014-01-29 21:52:55.540 TestRestart[624:60b] -[T1RAppDelegate applicationWillEnterForeground:]
2014-01-29 21:52:55.552 TestRestart[624:60b] -[T1RAppDelegate applicationDidBecomeActive:]
2014-01-29 21:52:56.949 TestRestart[624:60b] -[T1RViewController donePressed:]
2014-01-29 21:52:57.157 TestRestart[624:60b] -[T1RViewController donePressed:]
2014-01-29 21:52:57.365 TestRestart[624:60b] -[T1RViewController donePressed:]
2014-01-29 21:52:57.557 TestRestart[624:60b] -[T1RViewController donePressed:]

Again a delay of 1.397 beween applicationDidBecomeActive and the first reaction to my button.




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Delays in awaking iOS app
      • From: "Gerriet M. Denkmann" <email@hidden>
  • Prev by Date: Base Localization of tool tips not working anymore
  • Next by Date: Preserving undo actions on deleted targets
  • Previous by thread: Base Localization of tool tips not working anymore
  • Next by thread: Re: Delays in awaking iOS app
  • Index(es):
    • Date
    • Thread