title: How to make a superview intercept button touch events?
body: <p>Say I have this code:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface MyView : UIView
  @end
  @implementation MyView
  
  - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
  {
      // How can I get this to show up even when the button is touched?
      NSLog(@"%@", [touches anyObject]);
  }
  
  @end
  
  @interface TestViewAppDelegate : NSObject &lt;UIApplicationDelegate&gt;
  {
      UIWindow *window;
  }
  
  @end
  
  @implementation TestViewAppDelegate
  
  - (void)applicationDidFinishLaunching:(UIApplication *)application
  {
      window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  
      MyView *view = [[MyView alloc] initWithFrame:[window frame]];
      [view setBackgroundColor:[UIColor whiteColor]];
  
      UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
      [button setTitle:@"Hiya!" forState:UIControlStateNormal];
      [button setFrame:CGRectMake(100.0, 100.0, 200.0, 200.0)];
      [view addSubview:button];
  
      [window addSubview:view];
      [window makeKeyAndVisible];
  }
  
  
  - (void)dealloc
  {
      [window release];
      [super dealloc];
  }
  
  @end
  </code></pre>
  
  <p>Is there any way to intercept the touch events getting sent to the button? What I'd like to eventually do is make a UIView subclass that will tell its view controller (or delegate, whichever) when it detects a swipe so it can "push" the next view controller onto the stack (similar to the iPhone home screen). I figured this was the first step, but I'm open to suggestions if I'm approaching this incorrectly.</p>