diff options
author | Vitaly Takmazov | 2018-04-28 04:45:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-28 04:45:13 +0300 |
commit | 05520b1f723b021bb57972b71cbe13684ab2195b (patch) | |
tree | 5bb39543164001537552e41cdb7e03a797398697 /Juick/Views/MessageCell.m | |
parent | f6fed5b2374c7d847c68efccce363f9513aa2efb (diff) |
Blog view
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index 2f00d7e..c304f37 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -28,6 +28,10 @@ self.timestamp.textColor = [UIColor grayColor]; self.summary.textColor = [UIColor grayColor]; self.tags.textFont = [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote]; + UIGestureRecognizer *avatarTapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarClicked:)]; + [avatarTapRecognizer setEnabled:YES]; + [self.avatar addGestureRecognizer:avatarTapRecognizer]; + [self.avatar setUserInteractionEnabled:YES]; } - (void) configureWithMessage:(Message *)msg { @@ -66,5 +70,9 @@ [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil]; } +-(void) avatarClicked:(UIGestureRecognizer *)gestureRecognizer { + [self.delegate avatarClicked:self.title.text]; +} + @end |