UITapGestureRecognizer *myTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hiddenBottonView:)];
lbl.userInteractionEnabled=YES;//打开交互
[lbl addGestureRecognizer:cell.myTap];
UITapGestureRecognizer *myTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hiddenBottonView:)];
lbl.userInteractionEnabled=YES;//打开交互
[lbl addGestureRecognizer:cell.myTap];
本文标题:给UILble添加点击事件
本文链接:https://www.haomeiwen.com/subject/pacdkxtx.html
网友评论