Edi Edi - 3 months ago 11
Objective-C Question

How do I set bold and italic on UILabel of iPhone/iPad?

How do I set bold and italic on

UILabel
of iPhone/iPad?
I searched the forum but nothing helped me. Could anyone help me?

Answer
sectionLabel.font = [UIFont fontWithName:@"TrebuchetMS-Bold" size:18];

There is a list of font names that you can set in place of 'fontWithName' attribute.The link is here link text