ios之Label的创建UILabel*label = [[UILabelalloc]initWithFrame:CGRectMake(10,100,300,150)];label.text= @"Hello world!";//背景颜色为红色label.backgroundColor= [UIColorredColor];//设置字体颜色为白色label.textColor= [UIColorwhiteColor];//文字居中显示label.textAlignment= UITextAlignmentCenter;//自动折行设置label.lineBreakMode= UILineBreakModeWordWrap;label.numberOfLines= 0;//设置字体//设置阴影的颜色label.font= [UIFontfontWithName:@"Arial-BoldItalicMT"size:32];label.shadowColor = [UIColor blackColor]