tap gesture not recognized on uiimageview
问题 I added two uiimageview s, one on another subview uiview ( imageview1,imageview2 ). In the first view the top uiimageview is hidden( imageview2 ) and in the second view the bottom imageview is hidden( imageview1 ). Allocating tap gesture: UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(oneTap:)]; UITapGestureRecognizer *singleTap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(oneTap:)]; Set user interaction for