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

Swift SpriteKit 3D Touch and touches moved

I have recently send out a version of my game to TestFlight for internal testing. My friend noticed that on his iPhone 6S Plus the controls to shoot do not work correctly. The controls are as follow 1) left half of screen = jump 2) right half of…
crashoverride777
  • 10,581
  • 2
  • 32
  • 56
2
votes
3 answers

In Swift, how can I check that a user is no longer touching the screen after touchesMoved is triggered?

I need to know that a user started to touch the screen and then know when he is not touching it anymore. With touchesBegan and touchesEnded I can get such information. However, if the user is swiping his fingers, then I know he started doing it with…
Duarte
  • 127
  • 4
  • 14
2
votes
1 answer

Try to move UIImageView in screen with touchesMoved

I try to move 2 UIImageView. Only one picture is supposed to move when I drag. What I trying to accomplish is move UIImageView when I touch and drag the UIImageView. This Is my viewDidLoad : -(void)viewDidLoad { [super viewDidLoad]; myImageView…
Roei Nadam
  • 1,780
  • 1
  • 15
  • 33
2
votes
3 answers

How do we use Watchkit Touch Events?

I wanna use touch events in my app. I know gesture recognisers can not be used in watchKit. Is it possible to use functions like touchesBegan, touchesMove etc ?
Emre Çimen
  • 35
  • 1
  • 6
2
votes
0 answers

How to detect touch on view which appears when finger is on screen?

For example: I have UIView and I detect long press - so then new UIView appears. It takes whole screen now. I still have finger down on the screen - I can move finger but I can't move up, beacause then my new UIView will disappear. So now I have to…
Jastine
  • 135
  • 2
  • 13
2
votes
1 answer

How do you get multiple touch buttons to work with touchesBegan/Moved?

I have a bunch of buttons that I want to activate in three different ways. Touch Down Touch Down - multiple touch (at the same time) Touch Drag Inside (The same as dragging your finger over a piano) The first two is obviously easy in IB. However…
Jonathan
  • 621
  • 1
  • 11
  • 27
2
votes
4 answers

Slide from one button to another without lifting your finger

I have two buttons (Button 1 and button 2) and if I press button 1, note1 starts and if i press button 2, note 2 starts. So what I try to do is: press button one (note1 starts) and SLIDE to button2 and than should note2 start. As in, you slide…
user268086
  • 41
  • 1
  • 5
2
votes
0 answers

Rendering touchesMoved and Fingerpaint slow - iOS7

I have a app that allows fingerprinting. For this I use touchesBegan, touchesMoved, touchesEnded. On iOS6 it works smooth, when moving the finger, the line is painted. But on iOS7, only the first point from touchesBegan is painted and on…
2
votes
1 answer

How to only look for upwards swipes on touchesMoved

I am currently using touchesMoved to allow the user to swipe upwards and the more they swipe upwards, the greater the number increase will be. I don't think I can use a UIGestureRecognizer here, because that won't record every single movement - it…
James Anderson
  • 556
  • 3
  • 16
  • 41
2
votes
1 answer

TouchesMoved with UIButton xcode 4.4 iOS 5.1.1

I know this question seems to be already asked and answered but I can't resolve my issue. I want to move the objects of my view to follow horizontal slides of a finger (going to previous or next page) For this, I use TouchesBegan, TouchesMoved and…
Little Gecko
  • 146
  • 9
2
votes
0 answers

how to rotate an UIImageview under the finger with constant 5 degrees rotation?

I am making a clock that can be controlled by the user.I have a UIImagview with a name minhandview(minute hand needle of the clock). I want to rotate it under my finger(it should track the finger movement) with a constant rotation of 5 degrees when…
hariszaman
  • 8,202
  • 2
  • 40
  • 59
1
vote
1 answer

touchesMoved continued point?

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint currentPoint = [touch locationInView:self.view]; NSLog("%f %f",currentPoint.x,currentPoint.y); } i want to developed a paint app…
wendli
  • 11
  • 1
1
vote
1 answer

How to improve (time) resolution of touches locationInView

I am trying to program an iPhone app where the user can handwrite. I am using touchesmoved to track the user's finger, but I get between 30 and 50 updates a second. For quick finger movements, this is often no enough to get smooth letters: small…
user1258240
  • 855
  • 7
  • 15
1
vote
1 answer

How can I store the path of finger movement in objective c?

I want to store the path of finger movement on iPhone screen. As of now I am just reading touches and adding CGPoints to NSMutableArray. when I try to print the all cgpoint in that array some how it is missing intermediate points. Is there a better…
slonkar
  • 4,055
  • 8
  • 39
  • 63
1
vote
1 answer

iOS Touches Began susequent touches only arrive if first touch moved

I'm overriding the touches methods in a UIView for a piano app. If I touch with one finger the iPhone or iPad I get -as expected- the touchesBegan callabck. And if I touch with a second finger I get that event in the touchesMoved callback. This is…
lukebuehler
  • 4,061
  • 2
  • 24
  • 28