summaryrefslogtreecommitdiff
path: root/Juick/Views/BubbleMessageCell.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-05 22:45:49 +0300
committerGravatar Vitaly Takmazov2018-11-05 22:45:49 +0300
commit8af785b209412b5d52dcd0503ccdbab108c506a7 (patch)
tree265cdf02b408f65dd2398ffbd321bd68e256b67d /Juick/Views/BubbleMessageCell.m
parent3fb9ed7994aa50b1281ec6be1ff4727842d3d0c2 (diff)
Bye-bye, TTTAttributedLabel
Diffstat (limited to 'Juick/Views/BubbleMessageCell.m')
-rw-r--r--Juick/Views/BubbleMessageCell.m12
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