YYLabel计算富文本高度-膜拜大神

http://www.jianshu.com/p/07cd655fee7e

YYTextLayout *layout = [YYTextLayout layoutWithContainerSize:CGSizeMake(SCREEN_WIDTH - commentLeftMargin * 2, CGFLOAT_MAX) text:self.showingAttribute];
        _commentHeight = layout.textBoundingSize.height;
        NSLog(@"YY计算-%f",_commentHeight);

posted on 2017-11-22 17:57  土匪7  阅读(5539)  评论(0)    收藏  举报