ForumTableViewCell.m 947 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//
//  ForumTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 2016/11/25.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "ForumTableViewCell.h"

@implementation ForumTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

曹云霄's avatar
曹云霄 committed
18 19 20 21
- (void)setCategoryEntity:(TOForumCategoryEntity *)categoryEntity
{
    _categoryEntity = categoryEntity;
    if (_categoryEntity) {
22 23
        [self.forumImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachmentBg.fileUrl] placeholderImage:nil];
        [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:_categoryEntity.attachment.fileUrl] placeholderImage:nil];
曹云霄's avatar
曹云霄 committed
24 25
        self.forumTitleLabel.text = _categoryEntity.name;
        self.forumDetailTitleLabel.text = _categoryEntity.fdescription;
曹云霄's avatar
曹云霄 committed
26 27
        //判断是否显示未读提醒
        self.remindBgView.hidden = !categoryEntity.hasNew;
曹云霄's avatar
曹云霄 committed
28
    }
29 30 31
}

@end