IOS7中contentsize獲取高度的方法

    [cell.methodTextView.text boundingRectWithSize:CGSizeMake(cell.methodTextView.frame.size.width, CGFLOAT_MAX) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:[NSDictionary dictionaryWithObjectsAndKeys:cell.methodTextView.font,NSFontAttributeName, nil] context:nil].size.heightspa

textview中text字符串調用boundingRectWithSize方法得到CGpoint,經過CGpoint調用.size.height 字符串

相關文章
相關標籤/搜索