UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)];
- (void)tapAction:(id)sender{ UITapGestureRecognizer *tap = (UITapGestureRecognizer *)sender; UIView *view = tap.view; NSInteger num = view.tag; if (_delegate && [_delegate respondsToSelector:@selector(imgClickWtinTag:) ]) { [_delegate imgClickWtinTag:num]; } }