iOS UILabel touch event

0 意見

label.userInteractionEnabled = YES;
UITapGestureRecognizer *tapGesture =
      [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(labelTouch)] autorelease];
[label addGestureRecognizer:tapGesture];