-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
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];
}
}
Metadata
Metadata
Assignees
Labels
No labels