title: How to implement dragable UIButton in iOS 6?
body: <p>I have been trying to implement dragable UIButton in iOS by overriding touchesMoved method.
  The button shows up , however i am not able to drag it.What am i missing here?
  <a href="http://iphoneapp-dev.blogspot.in/2011/07/how-to-drag-image-or-button-in-iphone.html" rel="nofollow">this is what i reffered</a></p>
  
  <p>This is my .h file.</p>
  
  <pre><code> @interface ButtonAnimationViewController : UIViewController
   @property (weak, nonatomic) IBOutlet UIButton *firstButton;
  </code></pre>
  
  <p>And the .m file.</p>
  
  <pre><code>@implementation ButtonAnimationViewController
  
  -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
  {
  UITouch *touch = [touches anyObject];
  CGPoint pointMoved = [touch locationInView:self.view];
  self.firstButton.frame = CGRectMake(pointMoved.x, pointMoved.y, 73, 44);
  
  }
  </code></pre>