title: Read Image file from custom directory using NSBundle
body: <p>Creating a custom directory which has all the images. Designing it custom because, it will help me to get the images as an when I need at various places in the configuration.</p>
  
  <pre><code>NSFileManager *filemgr;
  filemgr = [NSFileManager defaultManager];       
  [filemgr createDirectoryAtPath: @"/Users/home/lifemoveson/test" withIntermediateDirectories:YES attributes: nil error:NULL];
  </code></pre>
  
  <p>I have placed images under test folder and are of .png types.
  Is there a way to retrieve the images like below. </p>
  
  <p>/** UPDATED again **/</p>
  
  <p>Currently this folder is under Application_Home/Resources/ImageTiles/ as per Photoscroller example. 
  How can we change it to /Users/home/lifemoveson/test/ImageTiles/ folder ?</p>
  
  <pre><code>- (UIImage *)tileForScale:(CGFloat)scale row:(int)row col:(int)col
  {
  // we use "imageWithContentsOfFile:" instead of "imageNamed:" here because we don't want UIImage to cache our tiles
  NSString *tileName = [NSString stringWithFormat:@"%@_%d_%d_%d", imageName, (int)(scale * 1000), col, row];
  
  // Currently this folder is under &lt;Application_Home&gt;/Resources/ImageTiles/ as per Photoscroller example. 
  // How can we change it to /Users/home/lifemoveson/test/ImageTiles/ folder ?
  NSString *path = [[NSBundle mainBundle] pathForResource:tileName ofType:@"png"];
  UIImage *image = [UIImage imageWithContentsOfFile:path];
  return image;
  }
  </code></pre>