//
//  CustomTOPassLevelTopicEntity.m
//  Lighting
//
//  Created by 曹云霄 on 2016/12/7.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "CustomTOPassLevelTopicEntity.h"

@implementation CustomTOPassLevelTopicEntity


- (CGFloat)titleHeight
{
    if (!_titleHeight) {
        NSString *type = [NSString stringWithFormat:@"[%@]",[BaseViewController returnTopicTypeTitle:self.topicType]];
        NSString *string = [NSString stringWithFormat:@"%ld、%@_____   %@",self.lineNo,self.title,type];
        _titleHeight = [self calculateStudyIntroductionHeight:string]+23;
    }
    return _titleHeight;
}


#pragma mark - 计算高度
- (CGFloat)calculateStudyIntroductionHeight:(NSString *)content
{
    return [content heightWithWidth:437 andFont:15].height;
}

@end
