-2

Possible Duplicate:
How to detect Swipe Gesture in iPhone SDK?

How can I detect a swipe gesture within the interface of my iPhone application?

Community
  • 1
  • 1
Sam007
  • 1,385
  • 3
  • 17
  • 32
  • i am really sorry if i made mistake but i am new bee in developing. i am trying to obey asking rules and thanks for your king suggestion. – Sam007 Feb 05 '11 at 18:31

2 Answers2

6
  1. Create a UIView.

  2. Create a a subclass of a UIGestureRecognizer (sounds like you'd like to use UISwipeGestureRecognizer).

  3. Use the UIView instance method addGestureRecognizer: to attach your UIGestureRecognizer to the UIView instance.

Seriously though... you should be reading documentation and books, or watching the Apple development videos as opposed to posting on here...

James Bedford
  • 28,702
  • 8
  • 57
  • 64
0

Check out the UIGestureRecognizer Class Reference. Being new to the iOS SDK, Apple Developer Documents will be one of your best friends, 2nd to Google anyway.

WrightsCS
  • 50,551
  • 22
  • 134
  • 186