title: UIButton does not work in uiscrollView
body: <p>I have a <code>scrollView</code> that has a <code>UIView</code> as subview. This has as <code>UIView</code> subview a <code>UIButton</code>. Only the <code>scrollView</code> is connected to the outlet, the rest is all in code. The button does not respond to touches, not turns blue when touched. What can I do to make it work?</p>
  
  <p>This is the code: </p>
  
  <pre><code>   - (void)viewDidLoad
   {
         [super viewDidLoad];
  
        //......
  
        self.buttonHome = [UIButton buttonWithType:UIButtonTypeCustom];
        [self.buttonHome addTarget:self action:@selector(pressedHome:)
                                    forControlEvents:UIControlEventTouchUpInside];
        //....
        self.containerView =[[UIView alloc]initWithFrame:self.scrollView.frame];
        self.containerView.userInteractionEnabled=YES;
  
        [self.scrollView addSubview:self.containerView];
        [self.containerView addSubview:self.buttonHome];
    }
  
    -(void) pressedHome:(id)sender{
           //....
    }
  </code></pre>