Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 3rd, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }