From 4e6a313148890e30774757b382aa3b3ba1622bb6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 10 Nov 2013 18:51:44 +0400 Subject: refactoring and threadview --- Juick/MessageCell.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Juick/MessageCell.m') diff --git a/Juick/MessageCell.m b/Juick/MessageCell.m index ad3a849..0777dfd 100644 --- a/Juick/MessageCell.m +++ b/Juick/MessageCell.m @@ -24,7 +24,6 @@ if (self) { [self setBackgroundColor:[UIColor whiteColor]]; - self.selectionStyle = UITableViewCellSelectionStyleNone; self.avatar = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 32, 32)]; [self.avatar setBackgroundColor:[UIColor clearColor]]; @@ -154,7 +153,11 @@ self.titleLabel.text = msg.user; self.timestampLabel.text = msg.timestamp; if (msg.repliesCount > 0) { - self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + if ([msg.repliesBy length] > 0) { + self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies by %@", msg.repliesCount, msg.repliesBy]; + } else { + self.summaryLabel.text = [NSString stringWithFormat:@"%@ replies", msg.repliesCount]; + } } else { self.summaryLabel.text = nil; } -- cgit v1.2.3