diff options
author | Vitaly Takmazov | 2018-11-05 22:45:49 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-05 22:45:49 +0300 |
commit | 8af785b209412b5d52dcd0503ccdbab108c506a7 (patch) | |
tree | 265cdf02b408f65dd2398ffbd321bd68e256b67d /Juick/Views/MessageCell.m | |
parent | 3fb9ed7994aa50b1281ec6be1ff4727842d3d0c2 (diff) |
Bye-bye, TTTAttributedLabel
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index ffb564a..851e097 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -15,10 +15,8 @@ - (void)awakeFromNib { [super awakeFromNib]; self.text.textColor = [ColorScheme textColor]; - self.text.enabledTextCheckingTypes = NSTextCheckingTypeLink; - self.text.delegate = self; - self.text.linkAttributes = @{ (id)kCTForegroundColorAttributeName: [ColorScheme linkColor], - (id)kCTUnderlineStyleAttributeName : [NSNumber numberWithInt:NSUnderlineStyleSingle] }; + self.text.dataDetectorTypes = UIDataDetectorTypeAll; + self.text.tintColor = [ColorScheme linkColor]; self.title.textColor = [ColorScheme linkColor]; self.timestamp.textColor = [UIColor grayColor]; self.summary.textColor = [UIColor grayColor]; @@ -81,13 +79,8 @@ } } --(void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url { - [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; -} - -(void) avatarClicked:(UIGestureRecognizer *)gestureRecognizer { [self.delegate avatarClicked:self.title.text]; } - @end |