增加了UILabel的点击事件
//1.添加手势
UILabel * channelLabel = [UILabel alloc];
//2让其能与用户交互
channelLabel.userInteractionEnabled = YES
//3.添加手势
[channelLabel addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(channelLabelClick:)]];
//4.实现手势中的方法即可
增加UIView的点击事件与增加UILabel的点击事件步骤相同。