CGSize size =[_label.text sizeWithFont:[UIFont systemFontOfSize:17]constrainedToSize:CGSizeMake(160, 999999)];
_label.frame = CGRectMake(70, 20, size.width, size.height);
Label文本内容自适应
最新推荐文章于 2017-03-12 14:56:00 发布
CGSize size =[_label.text sizeWithFont:[UIFont systemFontOfSize:17]constrainedToSize:CGSizeMake(160, 999999)];
_label.frame = CGRectMake(70, 20, size.width, size.height);