diff options
author | Vitaly Takmazov | 2020-05-15 15:34:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-05-15 15:34:00 +0300 |
commit | aaa0bc8c2284b95187a51b10e44df26758e96718 (patch) | |
tree | d8c6c96da446605d6c88a09f0c420684cdbf687b /Juick/ViewControllers/MessagesViewController.m | |
parent | fa86aab338a9b866c240425c15dafdbaf4e0491f (diff) |
Selection style
Diffstat (limited to 'Juick/ViewControllers/MessagesViewController.m')
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |