NSMutableAttributedString *attribute = [[NSMutableAttributedString alloc] initWithString:@"12345" attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:30]}];
[attribute appendAttributedString:[[NSAttributedString alloc] initWithString:@"abcdefg" attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:10]}]];
UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 50)];
[self.view addSubview:lab];
lab.attributedText = attribute;
UILabel *lab1 = [[UILabel alloc] initWithFrame:CGRectMake(50, 200, 200, 50)];
[self.view addSubview:lab1];
NSMutableAttributedString *atttt = [[NSMutableAttributedString alloc] initWithString:@"zzzzzzzzz"];
[atttt addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:30] range:NSMakeRange(0, 5)];
lab1.attributedText = atttt;