cancel
Showing results for 
Search instead for 
Did you mean: 

what is the time distance for double tap in iOS apps?

ravidellenbogen
Employee
Employee
0 Kudos

Hi,

We're developing iPad app with map view. We would like users to zoom in by double taping on the map.

Are there any Apple specifications what is the time distance between tap A and Tap B to consider them as double tap guester?

Thanks

Ravid

Accepted Solutions (1)

Accepted Solutions (1)

Ian_Thain
Developer Advocate
Developer Advocate
0 Kudos
ravidellenbogen
Employee
Employee
0 Kudos

Got also:

http://developer.apple.com/library/ios/#DOCUMENTATION/WindowsViews/Conceptual/UIScrollView_pg/Zoomin...

and was also adviced to use a UITapGestureRecognizer on the view and set numberOfTapsRequired=2.

I'm not a developer, but I'll forward dev team your link and others'.

Many thanks for the help!

Answers (1)

Answers (1)

Ian_Thain
Developer Advocate
Developer Advocate
0 Kudos

Ravid

As you know the MKMapView will respond to a double tap by giving up a double tap action that you can respond to. That time difference is internal to iOS I believe, and I'm sure Apple wouldn't want you messing around with that, due to them wanting to make the whole experience uniform for iOS, as the HIG explains.

Though you can create your own gestures now, I would just be happy with sticking with the standard

ravidellenbogen
Employee
Employee
0 Kudos

Hi,

Thanks for replying. I'm a UX designer and an "ardent fan" of using standard behaviors.

We use Google map, but we have a layer of colored areas above it (e.g., state, county, etc.) to indicate money spent in each area. Say for example that NY state is colored in dark blue. I want by double taping to zoom in and see all counties in NY states colored according to expenses spent. I want users to drill down into an area by double tapping. If it was a pie chart or bar chart you would double tap on a slice to drill down to see more details. The same we want to achieve with the map.

Please find some colored maps:

States: http://www.freeusandworldmaps.com/images/US_Counties_Maps/USNationalCountyColor.jpg

Counties: http://upload.wikimedia.org/wikipedia/commons/4/45/Census-2000-Data-Top-US-Ancestries-by-County.jpg

Google map gestures will not work on the colored areas because of the layer. We aim to mimic the standard behavior in the colored areas, as if there was no layer. We need to know what the standard behavior is in order to mimic it. Are you familiar maybe with any definitions for double tap on a map?

Thanks in advanced,

Ravid

Ian_Thain
Developer Advocate
Developer Advocate
0 Kudos

UX a very excellent skill and key to successful mobile apps in particular!

Did you check out the code snippet I found and posted a link to?