SHARE
TWEET

Untitled

a guest Dec 3rd, 2012 16 Never
  1. - (IBAction)handlePan:(UIPanGestureRecognizer *)recognizer {
  2. CGPoint translation = [recognizer translationInView:self.view];
  3. recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x ,
  4.                                      recognizer.view.center.y + translation.y);
  5. [recognizer setTranslation:CGPointMake(0,0) inView:self.view];
  6. Movegvarx = [NSString stringWithFormat: @"%.2f", translation.x];
  7. Movegvary = [NSString stringWithFormat: @"%.2f", translation.y];
  8.  
  9. }
RAW Paste Data
Top