title: Display edited NSString in order
body: <p>I have been working on this for a few days with help from this great community.</p>
  
  <p>I have a <code>NSArray</code> that I need to edit <code>NSStrings</code> within. I have managed to detect a marker in the string and make it bold. However now I am trying to display the strings in the order that they are within the NSArray whilst maintaining the Bold that was added to the specific strings.</p>
  
  <p>I can display the individual Bold String '<code>string</code>' but I need it to be in order that it is within the array. I know of <code>stringByAppendingString</code> but this would put it at the end.</p>
  
  <p>Any directions would be brilliant.</p>
  
  <pre><code>for (NSString *testWord in legislationArray) {
              if ([testWord rangeOfString:@"BOLDME"].location != NSNotFound) {
  
              //Remove Marker
              NSString *stripped = [testWord stringByReplacingOccurrencesOfString:@"BOLDME" withString:@""];
  
              //Get string and add bold
              NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:stripped];
  
              NSRange selectedRange = [stripped rangeOfString:(stripped)];
  
              [string beginEditing];
  
              [string addAttribute:NSFontAttributeName
                             value:[UIFont fontWithName:@"Helvetica-Bold" size:18.0]
                             range:selectedRange];
  
              [string endEditing];
  
              //Where to go now with string?
  
          }
      }
      cell.dynamicLabel.text = [legislationArray componentsJoinedByString:@"\n"];
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Based on the answers below I got it working however the bold method invokes this error:</p>
  
  <p><img src="https://i.stack.imgur.com/2goka.png" alt="enter image description here"></p>