title: Bold part of an NSAttributedString without knowing length
body: <p>I'm working on app that will take user input from UITextFields for data such as users' first and last names. Later on, I want to display this data in bold. </p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/12974120/nsattributedstring-change-style-to-bold-without-changing-pointsize">NSAttributedString change style to bold without changing pointSize?</a> and <a href="https://stackoverflow.com/questions/6013705/any-way-to-bold-part-of-a-nsstring">Any way to bold part of a NSString?</a>, but these seem to indicate that you have to know the range of characters that you want to set to bold. </p>
  
  <p>In my case, I don't actually know the length of the strings until after the user inputs their data...how would I know what the length of the string to set to bold until this happens? </p>
  
  <p>Below are my properties for the UITextFields I'm using, which I'll want to display in bold later. </p>
  
  <pre><code>@property (strong, nonatomic) IBOutlet UITextField *firstName;
  @property (strong, nonatomic) IBOutlet UITextField *lastName;
  </code></pre>
  
  <p>And below is how I'm currently creating strings to store the info from the text fields, all of which I want to display in bold: </p>
  
  <pre><code>NSString *firstName = [_firstName text];
  NSString *lastName  = [_lastName text];
  </code></pre>