UITapGestureRecognizer not working in UIImageView

前端 未结 9 1630
长发绾君心
长发绾君心 2021-01-03 18:16

I had the following code:

UITapGestureRecognizer *showStoryTapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(showNewsStory         


        
9条回答
  •  既然无缘
    2021-01-03 19:18

    UIImageView has user interaction disabled by default, unlike most other UIView subclasses in UIKit.

提交回复
热议问题