iphone - Two finger swipe gesture -


Some sample code for the apple is under "detect swipe gestures".

I should find two swipe gestures for my application but I do not know where to start. Surprisingly, I was not able to find examples of any sample / similar code. Is there something natural about the code? Any links or suggestions that you are ready to share will be great.

Two finger swipes (assuming swipes are moving in the same direction) Regular swipe Detecting is similar to

  UITT * touch = [touches any object];  

You have to touch each in the NSSet touch .

You want to keep your own active touch, so you can track them

A simple method is made by making a single piece below:

  NSArray * ActiveTouches; NSArray * ArrayOfStartTouchPositions; NSARRA * ArrayoffquantTouchPosition;  

The array can help you track which one touches which starts the current state.

When you touch the end of the event, you have to remember to remove the array items. This simple method has additional hydrostring beneath. Once you get this idea, consider refactoring some to simplify the interface and reduce the chances of errors.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -