UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 280, 30)];
label.text = @"你是从initWithFrame来的label";
UILabel * label2 = [[UILabel alloc]init];
label2.frame= CGRectMake(20, 200, 280, 30);
label2.text = @"你是从init来的label";
[self.view addSubview:label];
[self.view addSubview:label2];
运行效果如下,可以看出,字体全部换掉了: