NSString *string = [NSString StringWithFormat:@"string"];
//设置字符串显示长度,折行长度;
CGSize size = [string sizeWithFont:font constrainedToSize:CGSizeMake(150.0f,1000.0f) lineBreadMode:UILineBreakModeCharacter Wrap];
UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(21.0f,14.0f,size.width,size.height)];
//设置字符串显示长度,折行长度;
CGSize size = [string sizeWithFont:font constrainedToSize:CGSizeMake(150.0f,1000.0f) lineBreadMode:UILineBreakModeCharacter
UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(21.0f,14.0f,size.width,size.height)];