@@ -320,6 +320,9 @@ - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
320
320
- (void )touchesEnded : (NSSet <UITouch *> *)touches withEvent : (UIEvent *)event
321
321
{
322
322
[self dismissAnimation ];
323
+ if ([self .delegate respondsToSelector: @selector (coreTextLabelLinkTouch:link:type: )]) {
324
+ [self .delegate coreTextLabelLinkTouch: self link: self .currentTouchLink.linkText type: self .currentTouchLink.linkType];
325
+ }
323
326
}
324
327
325
328
- (void )touchesMoved : (NSSet <UITouch *> *)touches withEvent : (UIEvent *)event
@@ -358,9 +361,9 @@ - (MYLinkModel *)selectedLink:(CGPoint)touchPoint
358
361
linkModel = link;
359
362
self.currentTouchLink = link; // 记录当前点击
360
363
// 回调内容
361
- if ([self .delegate respondsToSelector: @selector (coreTextLabelLinkTouch:link:type: )]) {
362
- [self .delegate coreTextLabelLinkTouch: self link: linkModel.linkText type: linkModel.linkType];
363
- }
364
+ // if ([self.delegate respondsToSelector:@selector(coreTextLabelLinkTouch:link:type:)]) {
365
+ // [self.delegate coreTextLabelLinkTouch:self link:linkModel.linkText type:linkModel.linkType];
366
+ // }
364
367
break ;
365
368
}
366
369
}
0 commit comments