how to get access to camera?

Discussion in 'iOS Programming' started by siliconKai, Sep 9, 2008.

  1. siliconKai macrumors newbie

    Sep 4, 2008
    Hey guys,
    i am looking for some information on "How to get access to the camera of the iPhone". Does anyone know some good links?

    i haven't found any information on this topic yet :-(

    i would like to stream a video with the camera. i know that this might be very hard.

    thanks for your help
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    You cannot get access to the camera at all using the SDK. You can only bring up the Apple defined take a picture UI.
  3. Ron C macrumors member

    Jul 18, 2008
    This is through the UIImagePickerController - you can choose among 3 kinds of images:
    • an image in the Photo library
    • an image from the recently taken pictures
    • a new image taken by the camera

    In all of these cases, the controller manages the selection process. You then get the image to use, but you can't get to the camera except through this method (... and still get it accepted by Apple for sale. There seem to be private APIs you could potentially use but I wouldn't expect Apple to approve of your use of these and allow the app into the store.)

    Ron C

Share This Page