+ (CGFloat)cellHeightWithMsg:(NSString *)msg
{
    UILabel *label = [[UILabel alloc] init];
    label.text = msg;
    label.font = [UIFont systemFontOfSize:16];
    label.numberOfLines = 0;
    CGSize size = [label sizeThatFits:CGSizeMake(UIScreenWidth-26, CGFLOAT_MAX)];
    return size.height;
}

 

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-15
  • 2022-12-23
  • 2021-12-21
猜你喜欢
  • 2021-12-21
  • 2021-12-02
  • 2021-10-17
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案