iOS笔记之UIKit_UILable
UILabel*label3 = [[UILabel alloc]initWithFrame:CGRectMake(0, 60+10+60+10+60+10, 320, 60)];
label3.backgroundColor = [UIColor redColor];
label3.text = @"我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾我爱你就啦飞蛾";
label3.textColor = [UIColor grayColor];
label3.textAlignment = NSTextAlignmentFromCTTextAlignment(kCTTextAlignmentCenter);
//label.font = [UIFont systemFontOfSize:20];
label3.font = [UIFont fontWithName:@"Chalkduster" size:10];
//设置多行显示的模式 设置成0 就是多行显示
label3.numberOfLines = 0;
label3.lineBreakMode = NSLineBreakByCharWrapping;
label3.adjustsFontSizeToFitWidth = YES;
label3.highlighted = YES;
label3.highlightedTextColor = [UIColor redColor];
label3.shadowColor = [UIColor purpleColor];
label3.shadowOffset = CGSizeMake(3, 0);
n//设置文本信息的高亮颜色
label4.highlightedTextColor = [UIColor lightGrayColor];
//编号
label4.tag = 104;
//UIView属性 透明度
label4.alpha = 0.5;
//0 ~1.0之间 0 全透 1.0不透
[self.view addSubview:label3];
NSArray*arry = [UIFont familyNames];
[arry enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
NSLog(@"%@",obj);
}];