I would like to add tap feature on the description label. So that I can either click the button or label to trigger the function. But as if I add the UITapGestureRecognizer on the description, it is not working Would you mind help me have a check for the method? ``` - (void)setDescriptionsTap { for (NSUInteger i=0; i<_descriptionsArray.count; i++) { [_descriptionsArray[i] setUserInteractionEnabled:true]; UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(buttonActionForTap:)]; tapGesture.delegate = self; [tapGesture.view setTag:i]; [_descriptionsArray[i] addGestureRecognizer:tapGesture]; } } ```
Activity
morganbigot commentedon Feb 15, 2016
Hi,
I would need exactly the same behaviour when i click on the description and on the button.
Is there any way to do that ?
Regards,
Morgan
johnny51925 commentedon Mar 3, 2016
@morganbigot
I fixed this function now
`- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
}`
By Adding these code, then you can add UITapGestureRecognizer function on the Description label with userInteractionEnabled = YES
morganbigot commentedon Mar 4, 2016
Thank you!
morganbigot commentedon Mar 8, 2016
Hi,
Will you make an update of the POD with that fix ?
Regards,