UILabel、UIView、UIImageView等等控件手势点击事件添加
self.disPhone.userInteractionEnabled=YES;
UITapGestureRecognizer *disPhoneTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(disPhoneClick)];
[self.disPhone addGestureRecognizer:disPhoneTap];
网友评论