UIButton inside UIScrollView doesn't fire on tap
<p>UIButton inside UIScrollView doesn't fire on tap. Please help resolve it.</p>

<pre><code> // Add a button
 UIButton *btn1 = [[UIButton buttonWithType:UIButtonTypeCustom] retain];
 btn1.frame = CGRectMake(0, 0, 26, 18); 
 btn1.bounds = CGRectMake(0, 0, 30.0, 30.0); 
 [btn1 setImage:[UIImage imageNamed:@"btnchecked.png"]
                         forState:UIControlStateNormal];
 [btn1 addTarget:self action:@selector(buttonClick1:) 
                      forControlEvents:UIControlEventTouchUpInside];
 [scrollView addSubview:btn1];


- (void)buttonClick1:(id)sender {
     int dd = 4; 
 }
</code></pre>
