Using this, you can recognize tap in the View.
- (void)viewWillAppear:(BOOL)animated
{
UIGestureRecognizer *tapScroll = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
//tapScroll.numberOfTapsRequired = 2; //here we can give tap count also
[recognizeTapView addGestureRecognizer:tapScroll];
tapScroll.delegate = self;
[tapScroll release];
}
- (void)handleTap:(UITapGestureRecognizer
*)recognizer
{
// After recognize tap, here you can implement code.
}