"Lekh Diagram" is a sketch recognition diagramming app. It recognizes rough sketches and convert them into regular shapes like rectangle, circle etc.
The "Lekh Diagram" was first released for iPad and now the next update is adding iPhone support.
The the screen of iPhone is much smaller as compared to iPad, so the UI of "Lekh Diagram" (iPhone version) has been designed so that you will have almost full screen of the iPhone for drawing purpose. There is small toolbar which can be collapsed and expanded.
The iPhone version has all those functionalities that the iPad version has.
The next update also adding feature of zooming canvas. This feature will be available on both iPhone and iPad.
iOS sdk provides simple and powerful touch gesture API. With few lines of code, you can make your app touch/multitouch aware.
In this blog post, I am posting code snippet for using touch gesture in iOS app. The code snippet is taken from a drawing app: Lekh Diagram
The Lekh Diagram heavily uses touch gestures. Here are touch gestures used by Lekh Diagram
pan
two finger drag
tap
double tap
long press
pinch
rotate
All these gestures are used in the app on the drawing canvas. The Lekh Diagram registers and handles all multitouch events except "two finger drag". The two finger drag is handled by UIScrollView.
Here is code snippet for registering gesture events:
The Lekh Diagram has drawing canvas which derives from UIView as
@interface DrawingView : UIView
@end
In the constructer of this class, following code registers for events.