diff options
author | Vitaly Takmazov | 2016-08-22 00:44:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-08-22 00:44:28 +0300 |
commit | a74588083c4950e9237dff7a84ccdd129b72c950 (patch) | |
tree | e2ac66b8b3028fe09d6046a1ae4c80bcf2f85e14 /Juick/Views/MessageCell.m | |
parent | 392e98ba3c4b3e4a01bf475794d23c26e20d654a (diff) |
RestKit -> YYModel
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index 7117052..1ffc1c9 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -23,8 +23,8 @@ - (void) setMessage:(Message *)msg { _message = msg; - self.avatar.yy_imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [msg.userID intValue]]]; - self.title.text = msg.user; + self.avatar.yy_imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [msg.user.uid intValue]]]; + self.title.text = msg.user.uname; NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss"; [formatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; |