How can I take a photo with my iPhone app?

前端 未结 5 1432
甜味超标
甜味超标 2021-01-31 19:39

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

5条回答
  •  时光说笑
    2021-01-31 20:34

    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

提交回复
热议问题