Closed ghost closed 7 years ago
This project seems to be dead, so I suppose a PR wouldn't help.
I think the core of the problem is described here (answer 2):
https://stackoverflow.com/questions/10325776/touchescancelled-is-called-instead-of-touchesended
I could work around by redirecting the touchesCancelled
event to touchesEnded
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
/*
[UIView transitionWithView:self duration:highLightAnimationTime options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
self.attributedText = self.backupAttributedText;
} completion:nil];
[super touchesCancelled:touches withEvent:event];
*/
[self touchesEnded:touches withEvent:event];
}
By that change I cannot "undo" a touch to a hyperlink any longer, but the hyperlink at least is working all the time.
There must be something broken. When I first used this component at v 1.0.0 everything was fine. Today I checked the function and found it not working anymore. Your own sample code does not work any longer. I updated to 1.0.4 to no avail.
Please check this. I cannot make this NSLog (@"Selected...") appear. Tried on emulator only.