摘要: - (int)getAttributedStringHeightWithString:(NSAttributedString *) string WidthValue:(int) width{int total_height = 0;CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString((CFAttributedStringRef)string); //string 为要计算高度的NSAttributedStringCGRect drawingRect = CGRectMake(0, 0, width, 1 阅读全文