UILabelのclickイベントを拾う
- (void)viewDidLoad { [super viewDidLoad]; UILabel * myLabel = [[UILabel alloc] init]; myLabel.frame = CGRectMake(100, 100, 100, 50); myLabel.text = @"myLabel"; myLabel.userInteractionEnabled = YES; [myLabel addGestureRecognizer: [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(labelClicked)]]; [self.view addSubview:myLabel]; } - (void)labelClicked{ NSLog(@"unko"); }