Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


fingerpaint


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 ms75214   Members   -  Reputation: 143

Like
0Likes
Like

Posted 16 March 2011 - 12:54 PM

i want to make a fingerpaint app for ipad. can someone tell me how to detect a drag event on ipad?

i basically need to get these for the drag event

startx
starty
endx
eny

Sponsor:

#2 xEricx   Members   -  Reputation: 564

Like
1Likes
Like

Posted 16 March 2011 - 03:27 PM

i want to make a fingerpaint app for ipad. can someone tell me how to detect a drag event on ipad?

i basically need to get these for the drag event

startx
starty
endx
eny


I never developed for iOS but this should be one of the basic event you can handle and it's for sure in the documentation... did you search for more than 30 secs before posting here? ;)

#3 ms75214   Members   -  Reputation: 143

Like
0Likes
Like

Posted 16 March 2011 - 03:36 PM


i want to make a fingerpaint app for ipad. can someone tell me how to detect a drag event on ipad?

i basically need to get these for the drag event

startx
starty
endx
eny


I never developed for iOS but this should be one of the basic event you can handle and it's for sure in the documentation... did you search for more than 30 secs before posting here? ;)


i found this



- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event




i think touchesMoved might work



#4 ms75214   Members   -  Reputation: 143

Like
0Likes
Like

Posted 16 March 2011 - 03:40 PM



i want to make a fingerpaint app for ipad. can someone tell me how to detect a drag event on ipad?

i basically need to get these for the drag event

startx
starty
endx
eny


I never developed for iOS but this should be one of the basic event you can handle and it's for sure in the documentation... did you search for more than 30 secs before posting here? ;)


i found this



- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;




- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event




i think touchesMoved might work





also, this might help

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPoint currentPosition = [touch locationInView:self.view]; CGFloat deltaX = fabsf(gestureStartPoint.x - currentPosition.x); CGFloat deltaY = fabsf(gestureStartPoint.y - currentPosition.y); if (deltaX >= kMinimumGestureLength && deltaY <= kMaximumVariance) { // handle horizontal swipe } else if (deltaY >= kMinimumGestureLength && deltaX <= kMaximumVariance){ // handle vertical swipe... } }


#5 xEricx   Members   -  Reputation: 564

Like
0Likes
Like

Posted 16 March 2011 - 07:32 PM

http://ipad.headline...-image-uitouch/

3rd or 4th link on google, please do your homework :(




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS