title: Playing sounds from an array of strings in Objective-C
body: <p>I'm trying to create an array of strings that can be used to initiate the urls for sounds to play. This works if I explicitly type in the file name as shown below, but how can I insert one of the array strings at a specific object index into the 'fileURLWithPath?</p>
  
  <pre><code>soundsArray = [[NSMutableArray alloc] initWithObjects:@"test", @"test2",@"test3", nil];
  
  NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/test.mp3", [[NSBundle mainBundle] resourcePath]]];
  </code></pre>
  
  <p>Thanks for any insight!</p>