label根据文字自动适应大小 2015/07/20 16070 UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 150, 10)]; [label sizeToFit];