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/BubbleMessageCell.m | |
parent | 3fb9ed7994aa50b1281ec6be1ff4727842d3d0c2 (diff) |
Bye-bye, TTTAttributedLabel
Diffstat (limited to 'Juick/Views/BubbleMessageCell.m')
-rw-r--r-- | Juick/Views/BubbleMessageCell.m | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Juick/Views/BubbleMessageCell.m b/Juick/Views/BubbleMessageCell.m index 42b6019..87b482c 100644 --- a/Juick/Views/BubbleMessageCell.m +++ b/Juick/Views/BubbleMessageCell.m @@ -25,8 +25,8 @@ -(void) configureWithMessage:(Message *)message isMe:(BOOL)isMe { self.message.backgroundColor = isMe ? [ColorScheme secondaryBackground] : [ColorScheme mainBackground]; self.message.textColor = isMe ? [UIColor whiteColor] : [ColorScheme textColor]; - self.message.linkAttributes = @{ (id)kCTForegroundColorAttributeName: isMe ? [UIColor whiteColor] : [ColorScheme linkColor], - (id)kCTUnderlineStyleAttributeName : [NSNumber numberWithInt:NSUnderlineStyleSingle] }; + self.message.dataDetectorTypes = UIDataDetectorTypeAll; + self.message.tintColor = isMe? [UIColor whiteColor] : [ColorScheme linkColor]; self.name.text = message.user.uname; self.message.text = message.text; self.unreadMarker.text = @""; @@ -40,14 +40,6 @@ } completion:nil]; } failure:nil]; - self.message.enabledTextCheckingTypes = NSTextCheckingTypeLink; - self.message.clipsToBounds = YES; - self.message.textInsets = UIEdgeInsetsMake(4.0f, 8.0f, 4.0f, 8.0f); -} - --(void) attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url { - [[UIApplication sharedApplication] openURL:url options: - @{} completionHandler:nil]; } @end |