iOS `UIView` stops responding to gesture recognizer when its alpha is 0?
问题 I have a customized UIView , its behavior is like this: after I load it from nib and add it to my view hierarchy, It firstly is almost transparent (alpha = 0.1), when I tap it, it becomes opaque (alpha = 1.0), after some time, it automatically becomes almost transparent (alpha = 0.1). The code in the customized view is like this, it works just as I described above: - (void)awakeFromNib { [self setup]; } - (void)setup { self.alpha = 0.1f; [self addGestureRecognizer:[[UITapGestureRecognizer