title: How to get path of image form Resource of main bundle
body: <p>i have an iPhone application in which i added <code>images</code> directory (Group) in to <code>Resources</code> (group). i want to access that images which is in <code>images</code>. I need a path to that images so i create a code like following.</p>
  
  <pre><code>NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"myImage1" ofType:@"png" inDirectory:@"images"];
  NSLog(@"%@", imagePath);
  </code></pre>
  
  <p>Result :</p>
  
  <pre><code>(null)
  </code></pre>
  
  <p>i also tried this code  </p>
  
  <pre><code>NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"myImage1" ofType:@"png"];
  </code></pre>
  
  <p>But this code gives me <code>(null)</code> result.</p>
  
  <p><code>myImage1</code> 's path is <code>Resources/images/myImage1.png</code>  </p>
  
  <p>I don't know what is the problem. Please suggest some fixes.</p>