title: UITapGestureRecognizer doesn't work added to an UIView?
body: <p>I'm triyng to make a gesture recognizer for a simple UIView:</p>
  
  <pre><code>UIView *theView = [[UIView alloc] initWithFrame:rect];
  [theView setUserInteractionEnabled:YES];
  
  UITapGestureRecognizer *tap = [[[UITapGestureRecognizer alloc] initWithTarget:self 
                                                                         action:@selector(handleTap)] autorelease];
  [theView addGestureRecognizer:tap];
  </code></pre>
  
  <p>If I debug the property gestureRecognizers of the view it shows the gesture recognizer object. But when I tap inside the view it doesn't work.</p>
  
  <p>The same code using an UIImageView works perfect, any ideas why doesn't work in UIView?</p>
  
  <p>UPDATED:</p>
  
  <p>An example class.</p>
  
  <pre><code>@implementation ExampleClass
  
  - (UIView *)getViewInRect:(CGRect)rect
  {
      UIView *theView = [[UIView alloc] initWithRect:rect];
      [theView setUserInteractionEnabled:YES];
  
      UITapGestureRecognizer *tap = [[[UITapGestureRecognizer alloc] 
                                      initWithTarget:self 
                                      action:@selector(handleTap)] 
                                     autorelease];
      [aText addGestureRecognizer:tap];
  
      return theView;
  }
  
  - (UIImageView *)getImageViewInRect:(CGRect)rect
  {
      UIImageView *theView = [[UIImageView alloc] initWithRect:rect];
      [theView setUserInteractionEnabled:YES];
  
      UITapGestureRecognizer *tap = [[[UITapGestureRecognizer alloc] 
                                          initWithTarget:self 
                                                  action:@selector(handleTap)] 
                                     autorelease];
      [theView addGestureRecognizer:tap];
  
      return [theView autorelease];    
  }
  
  - (void)handleTap
  {
      NSLog(@"Tap Handled!!", nil);
  }
  
  @end
  </code></pre>
  
  <p>UPDATED 2:</p>
  
  <p>Adding UITapGestureRecognizer to all subviews of theView don't fix the problem...</p>
  
  <p>FIX IT!!!</p>
  
  <p>OK!! The problem was the CGRect for theView, it had the width set to 0.0!!!</p>