搜索
您的当前位置:首页正文

给UILble添加点击事件

来源:知库网
UITapGestureRecognizer *myTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hiddenBottonView:)];
 lbl.userInteractionEnabled=YES;//打开交互
 [lbl addGestureRecognizer:cell.myTap];
Top