This is done via the attributed strings object! You should definitely have a look at the programming guide:
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/AttributedStrings/AttributedStrings.html
Upon request, a short example to show how you create an attributed string.
- (void)viewDidLoad
{
[super viewDidLoad];
//
// Example 1: Create attributed string and set attributes for ranges
//
NSString *plainString = @"Hello World";
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:plainString];
// change the font of the entire string
[attributedString addAttribute:NSFontAttributeName
value:[UIFont fontWithName:@"Courier New" size:16.0]
range:NSMakeRange(0, plainString.length)];
// set the font color to blue for the word 'World'
[attributedString addAttribute:NSForegroundColorAttributeName
value:[UIColor blueColor]
range:NSMakeRange(6, 4)];
// assign to texfield 1
self.tfAttributedString1.attributedText = attributedString;
//
// Example 2: Create attributed string based on html
//
NSString *htmlString = @"<p style='font-family:Courier New'>Hello <span style='color:blue'>html</span></p>";
NSData *htmlStringData = [htmlString dataUsingEncoding:NSUTF8StringEncoding];
NSDictionary *attributedStringOptions = @{
NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType,
NSCharacterEncodingDocumentAttribute: @(NSUTF8StringEncoding)
};
// assign to texfield 2
self.tfAttributedString2.attributedText = [[NSAttributedString alloc] initWithData:htmlStringData
options: attributedStringOptions
documentAttributes:nil error:nil];
}
And this is what the result will look like:

attributedTextproperty to set what you could in IB. But if you use same style across the entire text, I think it would be better to just use the basic configuration liketextColor. I don't know about the line-height. But you could just set it toattributedTextif you could set that in the IB. For more advance control, there is Text Kit. - yusuke024