title: get image from iphone, using phonegap camera api
body: <p>I'm new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax.</p>
  
  <p><a href="http://wiki.phonegap.com/iPhone:-Camera-API" rel="nofollow noreferrer">http://wiki.phonegap.com/iPhone:-Camera-API</a></p>
  
  <p>I'm using the phonegap framework, Xcode iPhone SDK version 3.1.x.  On clicking button it calls function with parameter 0 or 1, but it does not initialize camera or display the library.</p>
  
  <p>I checked the simulator virtual phone; there is no icon for camera, but the pictures album is there.</p>
  
  <p>I used the same code as in the above link.</p>
  
  <p>What do I do, what and how to check? any other functions to get photos using phonegap?</p>