我实际上在做什么:-
lbl1= [[UILabel alloc] init];
lbl1.frame=CGRectMake(10, 10,90, 40);
lbl1.textColor=[UIColor blackColor];
lbl1.text=@"Definitions";
lbl1.font = [UIFont boldSystemFontOfSize:16.0f];
UILabel* finalLabel=[[UILabel alloc] init];
finalLabel.frame=CGRectMake(100, 10,90, 40);
finalLabel.text=[NSString stringWithFormat:@"%@:,The following terms shall have the described meaning:",lbl1];
finalLabel.font = [UIFont fontWithName:@"Helvetica" size:14];
finalLabel.numberOfLines=2;
[self.view addSubview:lbl1];
[self.view addSubview:finalLabel];
没有得到最终标签的正确结果
它打印:- 定义 UILABEL:0X68640;frame(10,10,90,40);text='Definition',CliptoBound=YES;Userintraction......