heikomaass / HMLauncherView

[ABANDONED] UI component for buttons like Apple's SpringBoard
Other
191 stars 25 forks source link

Issue when deleting an icon on iOS v4.1 and below #4

Closed mrd3650 closed 12 years ago

mrd3650 commented 12 years ago

When running on iOS version 4.1 and 4.0 (did not try earlier versions), when deleting an icon (i.e. tapping on the delete image) the tap seems to be recognized twice. The problem is that the deletion confirmation (via the UIAlertSheet) is presented twice as meaning that if confirmed twice, an exception is fired because the second time, the icon does not exist anymore.

mrd3650 commented 12 years ago

So after some quick research, I realized that there is no actual bug in this library, it is just that the behaviour in older versions of iOS is different for UIGestureRecognisers. This behaviour was eventually fixed by Apple in iOS v4.2 onwards.

Source: http://stackoverflow.com/questions/3224053/uigesturerecognizer-firing-twice This link contains a couple of workarounds. The best one in my opinion is to check for the state of the gesture and decide accordingly.