views:

702

answers:

2

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.

http://wiki.phonegap.com/iPhone:-Camera-API

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.

I checked the simulator virtual phone; there is no icon for camera, but the pictures album is there.

I used the same code as in the above link.

What do I do, what and how to check? any other functions to get photos using phonegap?

+1  A: 

it shows this error in debug console: 2010-03-25 23:36:02.337 PhoneGap[7433:207] Camera.getPicture: Camera not available.

both are the same function Camera.getPicture pamameter only differs 0 or 1, but photos also not wokring!

udhaya
A: 

The camera is not available in the iPhone Simulator. Test with the Photo Album when running in the iPhone Simulator, and test the camera on an actual iPhone device.

cdespinosa