summaryrefslogtreecommitdiff
path: root/Juick/Views/MessageCell.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r--Juick/Views/MessageCell.m11
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