自适应高度

CGRect rect = [string boundingRectWithSize:CGSizeMake(WIDTH, MAXFLOAT) options:NSStringDrawingUsesFontLeading | NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:15]} context:nil];

你可能感兴趣的:(自适应高度)