title: How to save multiple files in bundle in iphone app?
body: <p>Hi all i am trying to save image in the bundle which i have currently on my view,but the problem is that i can only save one image,if i want to save the another image it replaces the old.I am not getting how to save the multiple images in the bundle then.
  Here is my code.</p>
  
  <pre><code>- (void)writeImageToDocuments:(UIImage*)image 
  {
      NSData  *png = UIImagePNGRepresentation(image); 
      NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
      NSString *documentsDirectory = [paths objectAtIndex:0];
      NSError *error = nil;
      [png writeToFile:[documentsDirectory stringByAppendingPathComponent:@"image.png"] options:NSAtomicWrite error:&amp;error];
  
  
  }
  </code></pre>
  
  <p><strong>Please Help me out, how to save multiple images, files e.t.c in bundle</strong></p>
  
  <p>Thanks in advance </p>