+ Reply
Results 1 to 2 of 2
  1. #1
    What's Jailbreak?
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accessing iphone camera SDK's in simulator

    Dear all,

    I am trying to run a few samples that came with the Iphone SDK throught the Cocoa simulator and for some reason the code comes back with camera not present.

    I would have thought Apple would have added some smarts in to display a dummy image (like TWAIN) or used the camera hardware on my macbook.

    Is there a way for me to run the following code and get following code to succeed on the simulator -

    if ( ([UIImagePickerController
    isSourceTypeAvailable:UIImagePickerControllerSourc eTypeCamera])
    || (delegateObject == nil) || (controller == nil))
    {
    // do my job
    }

    Any inputs would be greatly appreciated.

    Cheers Max

  2. #2
    iPhone? More like MyPhone
    Join Date
    Oct 2007
    Posts
    132
    Thanks
    2
    Thanked 18 Times in 15 Posts

    In the simulator there are some sample photo library images that you can access.

    Use: UIImagePickerControllerSourceTypePhotoLibrary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts