views:

594

answers:

3

Is there any way to test the iPhone camera in the simulator without having to deploy on a device? This seems awfully tedious.

A: 

Nope (unless they've added a way to do it in 3.2, haven't checked yet).

bpapa
+1  A: 

There are a number of device specific features that you have to test on the device, but it's no harder than using the simulator. Just build a debug target for the device and leave it attached to the computer.

The camera, the actual phone, the accelerometer, real GPS data, the compass, vibration, etc all require the actual device.

-t

Tim
A: 

I wrote a replacement view to use in debug mode. It implements the same API and makes the same delegate callbacks. In my case I made it return a random image from my test set. Pretty trivial to write.

St3fan