Questions tagged [uiswipegesturerecognizer]

UISwipeGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for swiping gestures in one or more directions. A swipe is a discrete gesture, and thus the associated action message is sent only once per gesture.

UISwipeGestureRecognizer recognizes a swipe when the specified number of touches (numberOfTouchesRequired) have moved mostly in an allowable direction (direction) far enough to be considered a swipe. Swipes can be slow or fast. A slow swipe requires high directional precision but a small distance; a fast swipe requires low directional precision but a large distance.

You may determine the location where a swipe began by calling the UIGestureRecognizer methods locationInView: and locationOfTouch:inView:. The former method gives you the centroid if more than one touch was involved in the gesture; the latter gives the location of a particular touch.

Whole document - UISwipeGestureRecognizer

537 questions
-1
votes
1 answer

Custom Swipe gesture from one point with (x,y) to another point with (x,y) in swift 3

I am using swift gesture in my app But these swipes are just up - down - right and left - I want some thing more !!! I want to have swipe gesture from one point to another point with x and y for example from one point in the middle of the screen to…
Saeed Rahmatolahi
  • 1,317
  • 2
  • 27
  • 60
-1
votes
4 answers

Cannot assign to property: "description" property is immutable error with ( leftSwipe.description = .Left)

I am following along a YouTube video tutorial on Swipe Gestures. The code I am writing is exactly as being shown in the tutorial, but I an getting the error (Cannot assign to property: "description" property is immutable error) on the line…
Faheem Ahmad
  • 99
  • 10
-1
votes
1 answer

How to swipe down to dismiss current page in Xcode

So I wrote this line of code to dismiss the current tutorial page and let the user use the app but when you swipe down , the tutorial page will disappear for 1 second and it will come back. So I wrote these lines of code in the tutorial's view…
-1
votes
2 answers

add UISwipeGestureRecognizer to UIimageView that made by array

Code: Header file: @interface game : UIViewController { UIImageView *anh[8][8]; } -(void)SwipeToMove:(id)sender; @end Implementation file: - (void)viewDidLoad { [super viewDidLoad]; UISwipeGestureRecognizer *move =…
-1
votes
1 answer

Facebook Chat (iOS) - swipe to Left

Does the Facebook mobile app use UISwipeGestureRecognizers for Chat? And if so, since it seems the "swipe to left to bring out the chat list controller" is valid on every view controller, does it mean the same UISwipeGestureRecognizer is coded into…
-1
votes
2 answers

Use iOS SwipeGesture To Cycle through UIButtons

I have 6 UIButtons set up in my UIView, all in the exact same location. What I want to do, is to swipe from left to right or right to left, in order to go through the buttons. I have the UIGestures all set up and working on the view, I am just not…
user717452
  • 33
  • 14
  • 73
  • 149
-2
votes
1 answer

Scrolling CollectionView to left after ending should open another View Controller & same functionality on right end

I have a collection view in which 4-5 images are there & its scrolling direction is horizontal. I want to push to a view controller after the end of scrolling of both the side (i.e) left & right. If the user is on the most left image of collection…
-2
votes
1 answer

#selector in gesture Recognizer in xcode9

Hii everyone i'm just shifting from xcode8 to xcode9 and when i tryed to use gesture recognizer they xcode9 is showing some error argument of #selector refers to instate method swipe(gesture) that is not > expose to obj c and here my code…
-2
votes
1 answer

unrecognized selector sent to instance [UIImage] swift

I am new to Swift language and I want to implement a swipe gesture to my image so that I can change the page with it. For example when you received a whatsapp notification on any iPhone home screen. But when I am adding swipe gesture…
-2
votes
2 answers

swipe left to pull next view according to thumb speed

I am working on and app in which i have to take user to next view if user swipe next. Simply swipe gesture working dine. But the problem is a little of left swipe take the user to next view. What i want to implement is to make user see pulling next…
Parv Bhasker
  • 1,773
  • 1
  • 20
  • 39
-2
votes
1 answer

swipe gesture strike through text

I have been trying to come out a solution for using swipe gesture to the right and makes the text on a label.text with strike through effect, swipe again to remove the strike through and leaves the original text intact. Any example of codes as to…
-3
votes
1 answer

how to change view controller on swipe in iphone sdk?

I want to change view controllers by swiping controller like i when i swipe the message box should swipe from ViewController1->ViewController2 and from viewController1<-viewController2 i know i have to use UISwipeGestureRecognizer or may be…
1 2 3
35
36