title: Add spaces to infront of a string?
body: <p>I want to add spaces (" ") infront of a string (like white spaces). this is the length of the spaces</p>
  
  <pre><code> int spaces_needed=((36-[[dicBusinessDetails objectForKey:@"ResturantName"] length]))/2;
  </code></pre>
  
  <p>What I want is to create a string like this</p>
  
  <pre><code> NSString stringWithFormat:@"               %@",[dicBusinessDetails objectForKey:@"ResturantName"];
  </code></pre>
  
  <p>But the spaces should <strong>NOT</strong> be fixed as above, but variable length of <strong>int spaces_needed</strong>.       </p>
  
  <p><em>Actual reason for doing this is to center align a string in a receipt</em>   </p>