How to detect if iPhone/iPod camera supports video? -


Is there a better way to use sysctlbyname to find device models and filter by supported models? I'm hoping to clean something as if: ([UIImagePickerControllerSourceType is available: UIImagePickerControllerSourceTypeCamera])

Answer: In the process of writing this, I got the answer. As I did, by keeping anyone else, you are going to:

  NSArray * media = [UIImagePickerController availableMediaTapsSupport: UIImagePickerControllerSourceTypeCamera]; If ([Media contains the object: @ "Public Movie"] == Yes) NSLog (@ "Video Supported"); Other NSLog (@ "video is not supported");  


Comments