title: A view loaded from the nib doesn't receive touch events
body: <p>I am trying to load a a view from the nib and add it to the main view. Here is my code.</p>
  
  <p>I loaded the nib in the <code>initWithFrame</code> of the <code>@interface AddTaskView:UIView</code>:</p>
  
  <pre><code> - (id)initWithFrame:(CGRect)frame
      {
      self = [super initWithFrame:frame];
      if (self) {
          NSLog(@"init with frame");
          // Initialization code
  
          NSArray *addTaskArrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"AddTaskView"
                                                                       owner:self
                                                                     options:nil];
          self=[addTaskArrayOfViews objectAtIndex:0];
      }
      return self;
      }
  </code></pre>
  
  <p>After that I init the view and add it to the main view:</p>
  
  <pre><code> self.addTaskView=[[AddTaskView alloc]initWithFrame:CGRectMake(0, 0, 320, 460)];
      [self.view addSubview:self.addTaskView];
  </code></pre>
  
  <p>Everything works fine but the AddTaskView doesn't receive the touch event. I have three buttons and when I try to push them they don't receive the actions.
  I made the nib of type "AddTaskView" but without any luck. I also looked in the subviews and the "AddTaskView" is the top view.</p>
  
  <p>I added this code in the AddTaskView to see if I get a touch and no response:</p>
  
  <pre><code> - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
          NSLog(@"touch");
      }
  </code></pre>
  
  <p>How do I get a chance to respond to touch events?</p>