From 6b40ce02de5ffe5e024c7aea0b8d73ab7e85b78e Mon Sep 17 00:00:00 2001 From: "Seb C. Thiebaud" Date: Tue, 5 May 2015 15:29:55 -0700 Subject: [PATCH 1/2] Fix detection block issue --- STTweetLabel/STTweetLabel.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/STTweetLabel/STTweetLabel.m b/STTweetLabel/STTweetLabel.m index 12bff36..4a5d417 100644 --- a/STTweetLabel/STTweetLabel.m +++ b/STTweetLabel/STTweetLabel.m @@ -450,14 +450,9 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { - if (!self.textSelectable) { - [super touchesEnded:touches withEvent:event]; - return; - } - CGPoint touchLocation = [[touches anyObject] locationInView:self]; - if (_isTouchesMoved) { + if (self.textSelectable && _isTouchesMoved) { UIMenuController *menuController = [UIMenuController sharedMenuController]; [menuController setTargetRect:CGRectMake(_firstTouchLocation.x, _firstTouchLocation.y, 1.0, 1.0) inView:self]; [menuController setMenuVisible:YES animated:YES]; From 93c9f82616396c381c9c7e8900c0ca1a06fdad4c Mon Sep 17 00:00:00 2001 From: "Seb C. Thiebaud" Date: Tue, 5 May 2015 15:30:23 -0700 Subject: [PATCH 2/2] Bump version --- STTweetLabel.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/STTweetLabel.podspec b/STTweetLabel.podspec index 8f6862d..318dd87 100644 --- a/STTweetLabel.podspec +++ b/STTweetLabel.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "STTweetLabel" - s.version = "3.1.19" + s.version = "3.1.20" s.summary = "A custom UILabel view controller for iOS with certain words tappable like Twitter." s.homepage = "https://github.com/SebastienThiebaud/STTweetLabel" @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.author = { "Sebastien THIEBAUD" => "sthiebaud@icloud.com" } s.source = { :git => "https://github.com/SebastienThiebaud/STTweetLabel.git", - :tag => "3.1.19" + :tag => "3.1.20" } s.platform = :ios, '7.0'