<p>I'm writing an iPhone app with Cocoa in xcode.  I can't find any tutorials or sample code that shows how to take photos with the built in camera.  How do I do this?  Where can I find good info?</p>

<p>Thanks!</p>

The
```
UIImagePickerController
```
class lets you take pictures or choose them from the photo library.  Specify the source type as
```
UIImagePickerControllerSourceTypeCamera
```
.
See also this question previously asked:
Access the camera with iPhone SDK