title: Objective c - Text indentation
body: <p>This question is about implementing text indentation ("The placement of text farther to the right to separate it from surrounding text") in iOS.</p>
  
  <p>Take for example the following text:</p>
  
  <ol>
  <li>This is the first section. </li>
  <li>This is the second one,<br>
  with two lines.</li>
  <li>This is the third.</li>
  </ol>
  
  <p>Notice that the second row in section 2 begin farther to the right and just below the line above.  </p>
  
  <p>My code contains an array of <code>NSString</code>, each one should be display as a section with numeric bullet like above.  for example:  </p>
  
  <pre><code>NSArray *array = [NSArray arrayWithObjects:@"1. This is the first section.", @"2. This is the second one, with two lines.", @"3. This is the third.", nil];
  </code></pre>
  
  <p>I use <code>UILable</code> to display the text on screen.<br>
  To set the text from the array to the label, and to separate each string in a new line I use   </p>
  
  <pre><code>myLabel.text = [array componentsJoinedByString:@"\n"];
  </code></pre>
  
  <p>Any ideas how to get this effect?</p>