@selector not working in imageView for UIButton with image
<p>I have placed the uiscrollview for viewcontroller.Then i have set my large size image as imageView in to  the uiscrollView.Then i have set the some buttons into the imageView.In that imageview, i have called one method "showRestaurant".But the selector failed to called the method.Kindly help me regarding on this.Thanks in advance.</p>

<p>Code:</p>

<pre><code>- (void)handleDoubleTap:(UIGestureRecognizer *)gestureRecognizer {

    float newScale = [imageScrollView zoomScale] * ZOOM_STEP;
    CGRect zoomRect = [self zoomRectForScale:newScale withCenter:[gestureRecognizer locationInView:gestureRecognizer.view]];        

    UIButton *btn1 = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn1 setImage:[UIImage imageNamed:@"restaurant.png"] forState:UIControlStateNormal];
    UIButton *btn2 = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn2 setImage:[UIImage imageNamed:@"restaurant.png"] forState:UIControlStateNormal];

    [imageScrollView zoomToRect:zoomRect animated:YES];

    if(newScale==1.500){        
        btn1.frame = CGRectMake(2370.828125,1020.015625,35,34);         
        [btn1 addTarget:self action:@selector(showRestaurant) forControlEvents:UIControlEventTouchUpInside];
        [imageView addSubview:btn1];

        btn2.frame = CGRectMake(2270.828125,1070.015625,35,34);     
        [btn2 addTarget:self action:@selector(showRestaurant) forControlEvents:UIControlEventTouchUpInside];
        [imageView addSubview:btn2];
    }
}

-(void)showRestaurant{
    NSLog(@"testing321");
}
</code></pre>
