UILabel属性&API汇总 发表于 2017-11-10 Bearbeitet am 2023-03-21 分类于 iOS 1.设置文本及颜色12button.text = @"yifan";button.textColor = [UIColor whiteColor]; 2.UILabel居左/中/右对齐123_label.textAlignment = NSTextAlignmentLeft;_label.textAlignment = NSTextAlignmentRight;_label.textAlignment = NSTextAlignmentCenter;