Differentiating Tap Counts on iOS
In your iPhone/iPad apps you often need to know how many times your user tapped in a view. This can be challenging because, though the user may have tapped twice, you will receive the event and it will look like they tapped once as well as twice. If the user triple-tapped, you will get the event for one tap, two taps, and three taps. It can get a little frustrating, but the trick is timing. You simply have to wait a period of time to see if another tap comes. If it does, you cancel the action spawned by the first tap. If it doesn’t you allow the action to run. There’s a few little nuances to getting it to work, but it can be done. Here is how.
Paperback Kindle
Steve Jobs reports today that Apple is selling an iPad every three seconds.
This is a pretty urgent moment for my friends on the Kindle team, so here are some bonus thoughts on pricing, business models and competition:
iPad VGA Output
There’s been a lot of confusion about how the iPad VGA Adapter works. I received mine today, and I thought I’d try to clear things up a little (and give you some code to play with, if you’re an iPad developer with a VGA adapter of your own).
iPad Multi-Touch
A friend of mine recently asked how many simultaneous touch events the iPad supported; I wasn’t sure, so I promised to write some code to conduct an experiment and find the answer. I got around to doing so, and the answer is: eleven.