diff options
author | Vitaly Takmazov | 2016-09-20 22:32:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-09-20 22:32:17 +0300 |
commit | e970933ce6f0149c20bf1d09cf69a97fc1678a20 (patch) | |
tree | 54d0830425b29b02534a107f1542dac61188905d /Juick/Views/MessageCell.m | |
parent | 49cd38a2ef9ad9c9aa08bdb3ff2baafb6abede89 (diff) |
links
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 7 |
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 |