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

#import "CustomTOForumReplyEntity.h"

@implementation CustomTOForumReplyEntity


- (CGFloat)replyContentHeight
{
    if (!_replyContentHeight) {
17
        _replyContentHeight = [self calculateStudyIntroductionHeight];
18 19 20 21 22
    }
    return _replyContentHeight;
}

#pragma mark - 计算高度
23
- (CGFloat)calculateStudyIntroductionHeight
24
{
25
    return [self.replyContent heightWithFontSize:13 width:ScreenWidth-40];
26 27 28
}

@end