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

UITableViewController subclass setEditing: never puts the tableView in editing mode

I am using a SplitViewController and Core Data. My Master view is a simple TableView like the SplitViewController template. I have these three methods: - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { …
Crystal
  • 28,460
  • 62
  • 219
  • 393
0
votes
1 answer

No visible interface for UISwipeGestureRecognizer declares the selector 'touchesMoved:withEvent:'

I got an error. "No visible interface for UISwipeGestureRecognizer declares the selector 'touchesMoved:withEvent:'" I looked at documentation and found touchesMoved:withEvent at UIGestureRecognizer class. How do I solve this error? @interface…
Voloda2
  • 12,359
  • 18
  • 80
  • 130
0
votes
1 answer

Update sqlite 3 field value on swipe gesture delete in Xcode

Hy all, I have an application that loads data from an sqlite database into a table view. Fields that shows up in this view are entries having a field set in the sqlite database to a value = YES. So when the application loads, it will automatically…
Elias Rahme
  • 2,226
  • 3
  • 28
  • 53
0
votes
1 answer

Gesture Recognizer

I have a UIView on some part of screen. This UIView has Pan gesture recognizer. This UIView ( mainVw) has a UITextView that completely covers the UIView. This UITextview has swipe gestures(left and write). My problem is When I swipe left or right,…
0
votes
1 answer

Get the Direction of Swipe Before Scrolling a UIScrollView

Is there a way to get the direction of swipe before the scrolling the UIScrollView? I tried to add swipe gesture but no luck. Here is the event I want to handle. If I swipe fast sideways, left or right, and down-ish, I want it scroll else don't…
0xdeadfa11
  • 63
  • 1
  • 7
0
votes
1 answer

Swipe without actually swiping in iPad?

Is it possible to make a view move either to the left or right in the iPad, when I tap on a button, instead of actually swiping on the view. This can be seen in the iPad when I'm in the screen after the search screen, and I install an app, the…
Breakpoint
  • 1,511
  • 1
  • 18
  • 41
0
votes
1 answer

Slide-able UIView menu that responds to UIGestureRecognizer

So what I am trying to do with this view is make it so that i can slide the UIView (menuView) up and down in and out of the screen. So in storyboard/IB i placed a UIView and connected it to files owner and all that jazz. then i entered the program…
nfoggia
  • 513
  • 1
  • 8
  • 28
0
votes
1 answer

Trying to detect only right swipes

I'm trying to only detect a right swipe with a UISwipeGestureRecognizer. Even though I have set it to "Right", it's still registering swipes in both directions. I've searched online and read all of the dev pages Apple provides. I'm not seeing a way…
Jackson Egan
  • 2,715
  • 4
  • 18
  • 26
0
votes
1 answer

Access UITableView cell and swipe between them from DetailView using XCode 4

I'm making my first app and I’m using XCode 4 with a Storyboard. Thanks to this place, lots of tutorials, Apple’s archives databases and a bit of me, I’m slowly getting the basics together. It’s an app populated from a plist. The plist is an array…
ingenspor
  • 924
  • 2
  • 15
  • 37
0
votes
1 answer

Two finger swipe on a UITableView

I am using a UITableView in my application to show a set of images under each section in a UITableView.I have a requirement which makes the UITableView to scroll to next section if the swipe is done with two fingers. Can some one help me in making…
Dinakar
  • 1,198
  • 15
  • 37
0
votes
1 answer

create UIIMageView in 3d with cubical shape

I want to create a UIImageView having 4 sides with 4 different images,and if user swipes on visible interface of UIImageView i t should show next face of the cube with different image. it Should allow left swipe and right swipe. final image should…
Bad Boy
  • 628
  • 2
  • 5
  • 23
0
votes
2 answers

UISlider + UISwipeGestureRecognizer Not Working First time

In my main viewcontroller, I have a uislider. and at the same time I assign UISwipeGestureRecognizer to the self.view as I want to detect gestures on the whole view. The problem is whenever I slide the slider, the gesture recognizer captured it as…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
0
votes
1 answer

iOS Core Plot - Detect swipe gesture on the graph

I'm using Core Plot to display a scatter plot graph, and I'd like to use a swipe gesture to switch between the graph itself and a UITableView of the data the graph is made up of. My UISwipeGestureRecognizer is working fine on the table view, but…
0
votes
1 answer

UISwipeGestureRecognizer works for touches 1 and 2 but not 3

The following does not work — handleSwipeUpTriple is never called: - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UISwipeGestureRecognizer *swipeUpTripleRecognizer =…
Wienke
  • 3,723
  • 27
  • 40
0
votes
1 answer

Change navigationcontroll animation

I am woundering if its possible to change the navigation controller animation to something where instead of the new view just sliding onto the view, having the current view slide off as the new view slides on... I have this function here, which is…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183