代码创建UILabel
UILabel *label = [[UILabel alloc] init];
label.text = @"单肩包";
label.frame = CGRectMake(0, 50, 50, 20);
label.font = [UIFont systemFontOfSize:11];
label.textAlignment = NSTextAlignmentCenter;
本文共 265 字,大约阅读时间需要 1 分钟。
代码创建UILabel
UILabel *label = [[UILabel alloc] init];
label.text = @"单肩包";
label.frame = CGRectMake(0, 50, 50, 20);
label.font = [UIFont systemFontOfSize:11];
label.textAlignment = NSTextAlignmentCenter;
转载于:https://www.cnblogs.com/zhangjingyangjinjin/p/5226617.html