UILabel * lable = [[UILabel alloc]init];
lable.text = @"根据lable内容设置尺寸";
lable.frame = [lable textRectForBounds:CGRectMake(15, 20, kDeviceWidth-22, MAXFLOAT) limitedToNumberOfLines:3];
UILabel * lable = [[UILabel alloc]init];
lable.text = @"根据lable内容设置尺寸";
lable.frame = [lable textRectForBounds:CGRectMake(15, 20, kDeviceWidth-22, MAXFLOAT) limitedToNumberOfLines:3];
本文标题:根据lable内容设置lable的尺寸
本文链接:https://www.haomeiwen.com/subject/gkzdpttx.html
网友评论