title: How do you load a local jpeg or png image file into an iPhone app?
body: <p>Or I should ask why is it so difficult for me?  The answer is probably that I'm new to iPhone development and I'm trying to ditch my old methods and step into the new platform of the future.  From start to finish, I have a few questions about this process...</p>
  
  <ol>
  <li>If I create a .png image, where does it go in my project's directory (i.e. my computer's hard drive)?  Can I put it anywhere on my hard drive and Xcode will copy it in the right place when I load it into Xcode?</li>
  <li>Once it exists on my hard drive somewhere, how do I add it to my Xcode project?  Can I just drag the file into any folder in the "Groups &amp; Files" tree?</li>
  <li>Once I drag it into Xcode, what copy settings do I want to use in that copy file dialog box that pops up? Copy items into destination group's folder checkbox?  Reference Type?  Recursively create groups for added folders?</li>
  <li>Once the .png image has properly been added to my project, what's the easiest way to get it into an CGImageRef?  The documentation shows an example using the <code>CGImageCreateWithPNGDataProvider</code> helper method, but says it's not supported by the iOS SDK.  I'd like to use the CGImageRef for repeatedly drawing the image to a bitmap context.</li>
  </ol>
  
  <p>Thanks so much in advance and I apologize for the lengthy question, I'm just surprised it's such a convoluted process compared to some other platforms.</p>