Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-13-2008, 05:32 PM   #5 (permalink)
ipodtouchmaster05
Registered Member
 
Join Date: Sep 2008
Posts: 176
Default

heres a way to track the coordinates of where you move your finger:

- (void)touchesMovedNSSet *)touches withEventUIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self];

NSLog(@"%f", location.x);
NSLog(@"%f", location.y);
}

Then instead of nslogging you can store those in an array for later use or whatever else you want to do with them.
ipodtouchmaster05 is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,282
Threads: 39,074
Posts: 171,343
Top Poster: smasher (2,575)
Welcome to our newest member, FANFAN
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:24 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.