UIImageView *imgView =[[UIImageView
alloc]
initWithFrame:CGRectMake(0,
0,100,
100)];
imgView.userInteractionEnabled=YES;
UITapGestureRecognizer *singleTap =[[UITapGestureRecognizer alloc]initWithTarget:selfaction:@selector(onClick)];
[imgView addGestureRecognizer:singleTap];
-(void)onClick{
}
imgView.userInteractionEnabled=YES;
UITapGestureRecognizer *singleTap =[[UITapGestureRecognizer alloc]initWithTarget:selfaction:@selector(onClick)];
[imgView addGestureRecognizer:singleTap];
-(void)onClick{
}