在做页面引导功能时,想让用户单击UIImageView就能使引导用的UIImageView消失,但是
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self
action:@selector(dismissNotice)];
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self
action:@selector(dismissNotice)];
[shareNoticeMaskView addGestureRecognizer:recognizer];直接这样绑定时间,点击UIImageView没有触发响应时间。