tags:

views:

15

answers:

0

Is there a better way than using sysctlbyname to find the device model and filtering by supported models? I'm hoping for something clean like: if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera])

ANSWER: In the process of writing this, I found the answer. To keep anyone else from searching like I did, here you go:

NSArray *media = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypeCamera];

if ([media containsObject:@"public.movie"] == YES)
  NSLog(@"Video Supported");
else 
  NSLog(@"Video Not Supported");