Questions tagged [touchesmoved]

Use this tag for questions related to touchesMoved:withEvent, a UIResponder event-handling method in the UIKit framework and MonoTouch.UIKit Namespace.

touchesMoved:withEvent: is a UIResponder event-handling method in the UIKit framework and MonoTouch.UIKit Namespace that is triggered when one or more fingers moves on the screen.

Along with touchesBegan:withEvent:, touchesCancelled:withEvent:, and touchesEnded:withEvent:, it is one of the primary touch event-handling methods.

Syntax Examples

func touchesMoved(_ touches: Set<UITouch>,
     withEvent event: UIEvent?)

- (void)touchesMoved:(NSSet<UITouch *> *)touches
        withEvent:(UIEvent *)event

[MonoTouch.Foundation.Export("touchesMoved:withEvent:")]
public virtual Void TouchesMoved (NSSet touches, UIEvent evt)

Resources

Related Tags

246 questions
3
votes
4 answers

Why is my subclassed UIView not recieving touches moved when in a UIScrollView?

I have a Class called Boards and it is a subclass of UIView, I allocated an instance of that and put it into a UIScrollView, I want to instead of he touches going to the UIScrollView, but to the subview: Boards(UIView), I just don't know how to pass…
Jab
  • 26,853
  • 21
  • 75
  • 114
3
votes
1 answer

UIView touchesMoved not called if first finger released

I want to achieve a simple task - detect up to 10 touches in a UIView. Using these: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; It all works great. Problem is…
Guntis Treulands
  • 4,764
  • 2
  • 50
  • 72
3
votes
2 answers

Stretchy UIBezierPath line?

I want to draw a straight line with my finger that automatically sizes based upon how far away I am from the point of origin. So if I touch the screen in the middle and slide my finger out a line appears to 'stretch' and pivot around the point of…
3
votes
4 answers

detect Swipe gesture in UIWebview

I am new to iPhone developer, I made epub reader and loaded each page of epub in my webview What i want to is, when user does right swipe gesture 2nd time then i want to navigate to new page, i do not want to do anything when user does right swipe…
Krunal
  • 6,440
  • 21
  • 91
  • 155
2
votes
4 answers

IOS: use a .png to colour in a view

I have this code: -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { mouseSwiped = YES; UITouch *touch = [touches anyObject]; CGPoint currentPoint = [touch…
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241
2
votes
2 answers

touchesMoved called without touchesBegan

I have many custom UIViews within a container, which I animate after the user moves them. To track their movement, I get the current position with touchesBegan:, and update the position with touchesMoved:. Occasionally, particularly if I've moved a…
Ned
  • 6,280
  • 2
  • 30
  • 34
2
votes
1 answer

Increase the call-frequency for the touchesMoved-method

I am currently working on an app, which includes a paint function. It actually doesn't work that bad, but the problem is, that the refresh-rate or the frequency of the calls for the touchesMoved-method is too bad. If you move the fingers fast over…
Kevin Glier
  • 1,346
  • 2
  • 14
  • 30
2
votes
1 answer

iOS: Objective How To Get One Image At A Time To Glow, As Finger Is Dragged Over Each Of A Series Of Images

Objective: To get one image at a time to glow, as finger is dragged over each of a series of images. In an attempt to figure this out on my own, I tried to update the Alpha of the touched image to 1.00 while setting all others in the series of…
Dylan Late
  • 21
  • 1
2
votes
1 answer

touchesMoved not firing in iOS5 for the iPhone for UIScrollView

I have an iPhone app with a ScrollView which needs to respond to touch events. In order to support touch events in the scrollview I needed to base it off a custom class which captured the touch events and passed them to the main view. It works as…
Johnne
  • 143
  • 10
2
votes
1 answer

how do I get the x/y co-ordinates of a UIView origin used within a UINavigationController?

how do I get the x/y co-ordinates of a UIView origin used within a UINavigationController? That is I have a UINavigationController iPhone app setup. I push a new view, call it CustomUIView, onto the stack. How can I can the absolute origin (x/y…
Greg
  • 34,042
  • 79
  • 253
  • 454
2
votes
3 answers

Touchesbegan always fire when using touchesmoved?

I'm new to iPhone programing. I'm trying to do a simple window with a cat doing two sounds. When you click at the cat icon it should do "miaau", and when wou drag over window (stroke) it should make "mrrrr". It works, but always when I try to make…
Rafal
  • 55
  • 6
2
votes
1 answer

Gesture recognizer with delaysTouchesBegan stops all calls to touchesMoved?

The view controller code below demonstrates my question. It prints some debugging statements in response to touch events and a pinch gesture. If the gesture recognizer is disabled, and I drag a finger on the screen, everything works as I expected:…
Rob N
  • 15,024
  • 17
  • 92
  • 165
2
votes
1 answer

Anyone have code to substitute for UILongPressGestureRecognizer?

I'd like to support pre 3.2 and this is the only symbol that doesn't want to cooperate, anyone know of some touchesmoved code or something i can use in lieu of the UILongPressGestureRecognizer? Thanks, Nick
nickthedude
  • 4,925
  • 10
  • 36
  • 51
2
votes
1 answer

Drag and Drop in jQuery using Touchevent (iPhone browser)

I using jQuery to listen to the touchstart,touchmove and touchend, and I able to drag the 'dragitem' in iphone Safari(position change that base on the touchmove). But now the issue is how i can make the dropArea response when the 'dragitem' drag to…
Sola
  • 1,512
  • 4
  • 15
  • 31
2
votes
2 answers

UIButton blocking touchesBegan and touchesMoved

I'm writing an app for tvOS - and it all works until I put a UIButton on the screen. The problem, when buttons are added, is that touchesBegan and touchesMoved stop working. If I remove the buttons then touchesBegan and touchesMoved start working…
headbanger
  • 1,038
  • 1
  • 11
  • 32
1 2
3
16 17