diff options
author | Vitaly Takmazov | 2018-03-04 10:22:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-04 10:22:28 +0300 |
commit | 782219f3cdc8cac644cc33657813a5f8319dbae7 (patch) | |
tree | 65591cd2beb07dd6364a78f6e1154798ae00cf0a /Juick/Views/ConversationCell.m | |
parent | 5d0e97b3c1a1910a036f455b67205bc5eece1c29 (diff) |
groups_pms
Diffstat (limited to 'Juick/Views/ConversationCell.m')
-rw-r--r-- | Juick/Views/ConversationCell.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m new file mode 100644 index 0000000..750ab45 --- /dev/null +++ b/Juick/Views/ConversationCell.m @@ -0,0 +1,26 @@ +// +// ConversationCell.m +// Juick +// +// Created by Vitaly Takmazov on 04/03/2018. +// Copyright © 2018 com.juick. All rights reserved. +// + +#import "ConversationCell.h" +@import YYWebImage; + +@implementation ConversationCell + +- (void)awakeFromNib { + [super awakeFromNib]; + // Initialization code +} + +-(void) configureWithChat:(Chat *)chat { + self.chatName.text = chat.uname; + self.lastMessage.text = @""; + self.unreadMarker.text = @""; + [self.avatar yy_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [chat.uid intValue]]] options:YYWebImageOptionProgressiveBlur|YYWebImageOptionSetImageWithFadeAnimation]; +} + +@end |