Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e2e47a

Browse files
committed
优化
1 parent b2e7aa2 commit 9e2e47a

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

‎.DS_Store

0 Bytes
Binary file not shown.

‎MYCoreText_Example/MYCoreTextLabel/MYCoreTextLabel.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
319319

320320
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
321321
{
322+
if (!self.currentTouchLink) return;
322323
[self dismissAnimation];
323324
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
324325
if ([self.delegate respondsToSelector:@selector(coreTextLabelLinkTouch:link:type:)]) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /