ios控件添加点击事件,上代码:
UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickLabel)];
[self.label addGestureRecognizer:gesture];
ios控件添加点击事件,上代码:
UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(clickLabel)];
[self.label addGestureRecognizer:gesture];