title: Get Path to Subdirectory in Resources Folder
body: <p>i'm trying to get an array of all png files in a subdirectory of the Resources Folder.
  In my apps Resources Folder I have created a Folder named "images". This folder holds all the png-files I need to display.</p>
  
  <p>This is the way I tried to get the Path:</p>
  
  <pre><code>    NSString *imagepath = [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] bundlePath],@"images/"];
  
  NSLog(@"Path to Images: %@", imagepath);
  
  NSArray * paths = [NSBundle pathsForResourcesOfType: @"png" inDirectory:imagepath];
  NSMutableArray * allImageNames = [[NSMutableArray alloc] init];
  
  for ( NSString * path in paths )
  {
      if ( [[path lastPathComponent] hasPrefix: @"AQ"] )
          continue;
  
      [allImageNames addObject: [path lastPathComponent]];
  }
  </code></pre>
  
  <p>This way I get a Path like …/appname.app/images</p>
  
  <p>But if i try to do it that way, the array is always empty. 
  What am I doing wrong?</p>
  
  <p>greetz,
  Zarak</p>