title: Dynamically Create Object Within Loop - Objective C
body: <p>I'm looking for a way to dynamically create NSString objects in objective C based on how many of them I need (between 1 and 5). I then want to use those strings as names of objects which also are dynamically created;</p>
  
  <p>Pseudo Code:</p>
  
  <pre><code>for (i=1, i &lt;= number_of_characters, i++)
  {
  NSMutableString* theString = [NSMutableString character];
  [theString appendString:[NSString stringWithFormat:@"%i ",i]];
  UILabel *theString;
  [theString release];
  }
  </code></pre>
  
  <p>and I am hoping to get several UILabel objects named:</p>
  
  <p>character1</p>
  
  <p>character2</p>
  
  <p>character3</p>
  
  <p>and so on...</p>
  
  <p>Thanks!</p>