CGSize size = [self.workModel.discriptionContent sizeWithFont:[UIFont systemFontOfSize:16.0f] constrainedToSize:CGSizeMake(widthScreen, 20000)];
CGFloat height = size.height;
NSLog(@"%f",height);
UILabel *contentLabel = [[UILabel alloc]init];
contentLabel.frame = CGRectMake(0, 85+30, widthScreen, height);
contentLabel.textColor = [UIColor blackColor];
contentLabel.numberOfLines = 0;
contentLabel.font = [UIFont systemFontOfSize:15];
contentLabel.text = self.workModel.discriptionContent;
contentLabel.textAlignment=NSTextAlignmentLeft;
contentLabel.lineBreakMode = NSLineBreakByTruncatingTail;
[self.view addSubview:contentLabel];
欢迎使用CSDN-markdown编辑器
最新推荐文章于 2021-01-07 23:01:28 发布