From aaa0bc8c2284b95187a51b10e44df26758e96718 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 15 May 2020 15:34:00 +0300 Subject: Selection style --- Juick/ViewControllers/MessagesViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Juick/ViewControllers/MessagesViewController.m') diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m index f61d8b4..8fc6408 100644 --- a/Juick/ViewControllers/MessagesViewController.m +++ b/Juick/ViewControllers/MessagesViewController.m @@ -129,7 +129,7 @@ NSString* const messageCellIdentifier = @"messageCell"; } else { Message *msg = [self.messages objectAtIndex:indexPath.row]; MessageCell *cell = [tableView dequeueReusableCellWithIdentifier:messageCellIdentifier forIndexPath:indexPath]; - [cell configureWithMessage:msg]; + [cell configureWithMessage:msg selectable:self.shouldAllowToSelectText]; return cell; } } @@ -141,6 +141,7 @@ NSString* const messageCellIdentifier = @"messageCell"; -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Message *msg = [self.messages objectAtIndex:indexPath.row]; [self viewThreadForMessage:msg mid:msg.mid scrollTo:0]; + [self.tableView deselectRowAtIndexPath:indexPath animated:YES]; } -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { -- cgit v1.2.3