title: Objective-C string formatting
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/2985170/format-string-integer-with-leading-zeros">Format string, integer with leading zeros</a><br>
    <a href="https://stackoverflow.com/questions/2701538/string-formatting-tricks-docs">String Formatting Tricks/Docs</a>  </p>
  </blockquote>
  
  
  
  <p>I have a really simple question but didn´t find document about.</p>
  
  <p>I am using this code :</p>
  
  <pre><code>NSString *fileName = [NSString stringWithFormat:@"0%i.mp3", i];
  </code></pre>
  
  <p>so the @"0%i.mp3" = 01.mp3, 02.mp3 ... 09.mp3 files</p>
  
  <p>My issue is I have this mp3 with a longer name like 01-thefirstsong.mp3 , 02-mysecondsong.mp3 ... 15-mylastsong.mp3</p>
  
  <p>How can I write this like @"allmyfiles.mp3"   ?</p>
  
  <p>Regards</p>