Re: Delays in awaking iOS app
Re: Delays in awaking iOS app
- Subject: Re: Delays in awaking iOS app
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 31 Jan 2014 15:09:37 +0700
On 29 Jan 2014, at 22:02, Gerriet M. Denkmann <email@hidden> wrote:
> 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.
It turns out the delay is NOT really the problem - there is a similar delay on iOS 6 which has never bothered me.
The real problem is: iOS 7 ignores the first tap (if it comes too soon after applicationDidBecomeActive: - "too soon" meaning: less than about a second).
Whereas iOS 6 records and processes all taps.
Thanks to Rick Mann for helping me with this.
Gerriet.
_______________________________________________
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