title: User Interaction disabled in subview of a subview
body: <p>I am adding a set of views into a mainview as follows.i.e I have a view which contains a set of subviews (Label,Button etc).then this view added to the mainview. My ptoblem is when I tapped in the Button in the View its <code>IBAction</code> not invoked. My question is how invoke the Button tap action inside the subview of mainView?</p>
  
  <pre><code>for (int i = 0;i &lt; controls.count;i++) {
           UIView *view = [[UIView alloc]init];
           view.userInteractionEnabled = YES;
              for (int j=0; j&lt;viewsArray.count; j++) {
  
                    UIView *subView = viewsArray[i]; // this may be Button, Label etc
                    subView.tag = controlCount++;
               [view addSubview:subView];
              }
              [self.mainView addSubview:view];
          }
  </code></pre>