UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 150, 10)]; [label sizeToFit] 一句话实现复杂功能