- (void)viewDidLoad {
[super viewDidLoad];
[self.view addSubview:self.label];
for (NSString * familyName in [UIFont familyNames]) {
NSLog(@"familyName:%@", familyName);
for (NSString * fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"fonrName:%@", fontName);
}
}
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (UILabel *)label {
if (!_label) {
_label = [[UILabel alloc]initWithFrame:CGRectMake(20, 50, self.view.frame.size.width - 40, 30)];
_label.text = @"挂蓝高手";
_label.textAlignment = NSTextAlignmentCenter;
// _label.font = [UIFont systemFontOfSize:14]; //使用系统字体14
// _label.font = [UIFont fontWithName:@"Heiti TC" size:25]; //使用黑体25
}
return _label;
}