Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #135 from SebastienThiebaud/fix-detection-block
Browse files Browse the repository at this point in the history
Fix detection block
  • Loading branch information
Seb C. Thiebaud committed May 5, 2015
2 parents 6a88a4d + 93c9f82 commit 1660ab8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions STTweetLabel.podspec
@@ -1,14 +1,14 @@
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"

s.license = { :type => 'MIT', :file => 'LICENSE' }
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'
Expand Down
7 changes: 1 addition & 6 deletions STTweetLabel/STTweetLabel.m
Expand Up @@ -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];
Expand Down

0 comments on commit 1660ab8

Please sign in to comment.