On 29 Jan 2014, at 22:02, Gerriet M. Denkmann <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to