Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property (weak, nonatomic) IBOutlet UILabel *label;
- - (void)viewDidLoad
- {
- UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hoge)];
- label.userInteractionEnabled = YES;
- [label addGestureRecognizer:gesture];
- }
- -(void)hoge
- {
- NSLog(@"hoge");
- }
Add Comment
Please, Sign In to add comment