UILable
一般设置
[label setText:@"内容"];
label.text = @"内容";
label.textColor = [UIColor blueColor];
label.font = [UIFont fontWithName:@"Zapfino" size:20];
label.font = [UIFont boldSystemFontOfSize:20];
label.adjustsFontSizeToFitWidth = YES;
label.numberOfLines = 0;
label.enabled = NO;
label.hightlighted = YES;
label.hightlightedTextColor = [UIColor redColor];
label.shadowColor = [UIColor blackColor];
label.shadowOffset = CGSizeMake(3, 1);
label5.userInteractionEnabled = YES;
位置设置
label.textAlignment = NSTextAlignmentRight;
label.textAlignment = NSTextAlignmentLeft;
label.textAlignment = NSTextAlignmentCenter;