给UILble添加点击事件
2017-07-20 本文已影响13人
一个萝卜X个坑
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];