摘要:
UITapGestureRecognizer是没有tag属性,但他有UIView的属性,我们可以通过给UIView添加tag属性,从而标记UITapGestureRecognizer。UITapGestureRecognizer *singleTap =[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(whenClickImage:)];[_firstImage addGestureRecognizer:singleTap];UIView *singleTapView = [singleTap view];s 阅读全文