Determine if cameraDevice is available

/ Published in: Objective C
Save to your folder(s)

test if cameraDevice is available. Works with the different kind of sourceType

Copy this code and paste it in your HTML
  1. if (![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
  2. {
  3. NSLog(@"No camera!");
  4. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.