Q:

How to handle single vs double touches on iPhone

I want to do something similar to iPhone's photo viewer. When you single tap, the UI bars disappear after a short delay. When you double tap, it zooms in. But I don't want anything to happen on double tap because I haven't yet implemented zooming in.
Anyone know how to do this?
[This post] didn't really help. Unless you tell me it's necessary to subclass UIGestureRecognizer. Then, I think I could figure it out. Anyone have any examples?

A:

Look at the UITapGestureRecognizer documentation. There's two properties you want to look at:

numberOfTapsRequired; and
numberOfTouchesRequired

