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
0
votes
1 answer

UISwipeGestureRecognizer control brightness

I'm looking to create a UISwipeGestureRecognizer which is attached to my UIView. What I want to achieve allows the user to swipe their finger across the screen and set the brightness of the screen. Here is what I've attempted: -…
James
  • 5,137
  • 5
  • 40
  • 80
0
votes
1 answer

UIWebview with SwipeGestureRecognizer

I have an UIWebview, when user taps a UIButton, my webview will be loaded. I have an 10 HTML files in bundle i want to show the first html in webview and when user **swipes** i want to show the next HTML file. When user wants to see previous HTML…
Harish
  • 2,496
  • 4
  • 24
  • 48
0
votes
1 answer

How do I change background color using Swipe Gesture

I have an array set up with my colors, but when I swipe the view it always changes the color to the last item in the array. What am I missing? Is my for loop set up correctly? Here's my code: - (void)singleLeftSwipe:(UISwipeGestureRecognizer…
0
votes
0 answers

UISwipeGestureRecognizer throws off EXC_BAD_ACCESS

I have a view that I'm designing with XIB file, and writing a regular class that inherits from UIView, as normal. I need to add swipe functionality to the view. First, yes, I've user interaction enabled, both in IB and in viewDidLoad method as…
0
votes
1 answer

SwipeGestureRecognizer is not working after using PanGesture

I am using PanGestureRecognizer to my self.view and UISwipeGestureRecognizer in my UITableView. I have added UITableView as subview in self.view. Now UISwipeGesture is not working. But if i disable PanGesture in self.view, SwipeGesture is…
0
votes
2 answers

iOS working with multiple swipe recognizers

I have right and left swipe recognizers on my view, as well as a table.There is a problem when user swipes left->right on the table view, table handle them and swipes table content instead of execution of left->right swipe recognizer methods. How…
0
votes
1 answer

SwipeGesture in Iphone Cocos2d

I am using UISwipeGestureRecognizer to get swipe gesture in iPhone. i want to get 2 location points on Began of swipe touch and on end of swipe touch. i have implemented swipe touch method as below - (void)handleSwipeFrom:(UISwipeGestureRecognizer…
Zohaib
  • 2,845
  • 2
  • 23
  • 33
0
votes
1 answer

Swipeable controls in UIWebView

In my application, I have a file viewer that displays multiple types of content (images, pdf, text, etc) in a UIWebView. I have swipe controls for flipping to the next page, and these generally work fine as long as the image is smaller than the…
cain
  • 1,028
  • 1
  • 12
  • 26
0
votes
2 answers

Get touch position while swiping

anyone is aware of a way to get the current touch position (not start or end position) while user is swiping? Something like the -(void)scrollViewDidScroll:(UIScrollView *)scrollView{ NSLog(@"%f", scrollView.contentOffset.x); } but for…
masgar
  • 1,875
  • 2
  • 20
  • 32
0
votes
1 answer

Using two gestureRecognizers continuously without break

In my app, i have to implement two UIswipegesturerecognizers (left and right) one after another without removing the finger from screen. What i have right now is user needs to swipe left and then swipe to right with removing finger . Is there any…
Ashutosh
  • 5,614
  • 13
  • 52
  • 84
0
votes
1 answer

How to swipe out of table view controller (not the cells) - iPhone

I have a tab bar app. It has 5 tabs. I have the 3rd tab connected to a navigation controller that's connected to a table view controller. Simple enough, right? Well, I recently decided to implement left/right swipe gestures as an optional way to…
LargeGlasses
  • 912
  • 10
  • 17
0
votes
1 answer

How to implement swipe gesture on half view and pan gesture on other half view?

How to add a pan gesture to first half (0,0,160,480) of a view and on same view a swipe gesture on (160,0,160,480) as well? The view is table view and on swiping left the cell content should change and on panning in right the tableview should move…
0
votes
3 answers

Add UIGestureRecognizer to individual letters of UILabel

Right Now I am making an iOS app and I would like to implement the ability to remove letters in a UILabel by simply "Dropping the letter". The part That I am having an issue with is adding a gesture recognizer to individual letters of a UILabel. I…
virindh
  • 3,775
  • 3
  • 24
  • 49
0
votes
2 answers

Disable a single storyboard?

Is there a simple way to disable a single storyboard scene based on a condition? I'm using to check if location services are enabled for my app: [CLLocationManager authorizationStatus] != kCLAuthorizationStatusDenied If the above is true then I…
Donavon Yelton
  • 1,227
  • 3
  • 15
  • 24
0
votes
1 answer

UISwipeGestureRecognizer for subviews (UIVIew) not working

I have a View Controller with 3 subviews inside the self.view. I'm trying to slide between them and it's not working. Here is my code: - (void)viewDidLoad { UISwipeGestureRecognizer *swipeGestureRecognizerLeft = [[UISwipeGestureRecognizer…