The previous recipe shows how to detect events for one-finger events, but one of the most celebrated features of the iPhone is the multi-touch screen. Using more than one finger, users can do different actions in a very intuitive and easy way. For instance, zoom over a picture is one of these actions. This action requires using only two fingers, but other more complicated actions can use more fingers. One example of this could be a game for playing a piano.
This recipe shows the difference between one-finger and multi-touch events and how we can detect it.
For simplicity, we're going to continue using the iWebKit framework. You can reuse the file created in the previous recipe.