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.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m
index 1ffc1c9..963707c 100644
--- a/Juick/Views/MessageCell.m
+++ b/Juick/Views/MessageCell.m
@@ -12,7 +12,8 @@
- (void)awakeFromNib {
[super awakeFromNib];
- // Initialization code
+ self.text.enabledTextCheckingTypes = NSTextCheckingTypeLink;
+ self.text.delegate = self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
@@ -46,4 +47,8 @@
}
}
+-(void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url {
+ [[UIApplication sharedApplication] openURL:url];
+}
+
@end