title: trying to make dynamic NSString texts into bold text
body: <p>I'm new to iOS Development..I cannot get my strings to get BOLD. </p>
  
  <p>Thanks in advance!
  Here's my code</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  
  NSString *sentence = [[NSString alloc] initWithString:[NSString stringWithFormat:@"%@%@%@%@", self.name, self.adjective, self.noun, self.verb]];
  
  NSMutableAttributedString *finalSentence = [[NSMutableAttributedString alloc] initWithString:sentence];
  
  NSRange nameRange = NSMakeRange(0, self.name.length);
  NSRange adjectiveRange = NSMakeRange(self.name.length, self.adjective.length);
  NSRange nounRange = NSMakeRange((self.adjective.length + self.name.length), self.noun.length);
  NSRange verbRange = NSMakeRange((self.adjective.length + self.name.length + self.noun.length), self.verb.length);
  
  [finalSentence beginEditing];
  
  [finalSentence addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Arial-BoldMT" size:17.0] range:nameRange];
  [finalSentence addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Arial-BoldMT" size:17.0] range:adjectiveRange];
  [finalSentence addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Helvetica-Bold" size:12.0] range:nounRange];
  [finalSentence addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Helvetica-Bold" size:12.0] range:verbRange];
  
  [finalSentence endEditing];
  
  NSString *completeSentence = [finalSentence string];
  
  self.resultTextView.text = completeSentence;
  </code></pre>
  
  <p>}</p>