• 曹云霄's avatar
    欧普主页:增加http链接、模块入口(客户提供设计稿) · 684e3bbb
    曹云霄 authored
    讨论区:增加层次,分类页面更改。
    
    帖子看过之后变灰(本地缓存)
    帖子的分享按钮放出来
    
    闯关:
      首页延长显示区,主题两行显示,右边更多。。。点击更多,显示列表页
      未参加的显示在前面。点击进去,提示是否开始。
      过期的不要显示
      已提交的显示多少分,是否成功。没成功的增加还有几次机会。
      闯关说明改一改。(客户提供)
    684e3bbb
CustomTOForumTopicEntity.m 799 Bytes
//
//  CustomTOForumTopicEntity.m
//  Lighting
//
//  Created by 曹云霄 on 2016/12/12.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "CustomTOForumTopicEntity.h"

@implementation CustomTOForumTopicEntity


- (CGFloat)contentHeight
{
    if (!_contentHeight) {
        _contentHeight = [self calculateStudyIntroductionHeight:self.content withFont:13];
    }
    return _contentHeight;
}

- (CGFloat)titleHeight
{
    if (!_titleHeight) {
        _titleHeight = [self calculateStudyIntroductionHeight:self.title withFont:18];
    }
    return _titleHeight;
}

#pragma mark - 计算高度
- (CGFloat)calculateStudyIntroductionHeight:(NSString *)content withFont:(CGFloat)font
{
    return [content heightWithFontSize:font width:ScreenWidth-30*2];
}

@end