heres a way to track the coordinates of where you move your finger:
- (void)touchesMoved

NSSet *)touches withEvent

UIEvent *)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.