title: UIButton crashes on uitouch event
body: <p>I have a UIButton which sends the draginside event to:</p>
  
  <pre><code>-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
  </code></pre>
  
  <p>It does this through the following code in viewDidLoad:</p>
  
  <pre><code>[colourButton1 addTarget:self action:@selector(touchesBegan:withEvent:) forControlEvents:UIControlEventTouchDown];
  </code></pre>
  
  <p>Within the method it sends it to, there is the following line:</p>
  
  <pre><code>UITouch *myTouch = [touches anyObject];
  </code></pre>
  
  <p>And for some reason, when dragging inside the UIButton this crashes the app. Any ideas why?</p>
  
  <p>EDIT: The solution..</p>
  
  <pre><code>-(IBAction)buttonDragged:(id)button withEvent:(UIEvent*)event {
      NSSet *touches = [event touchesForView:colourButton1];
      [self touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event];
  }
  </code></pre>