tags:

views:

38

answers:

1

Version 3.1.3 if its relevant.

There is this suggestion which may work now, but in the future?

NSString *device = [UIDevice currentDevice].model;

if([device isEqualToString:@"iPhone"])
+6  A: 
#define SOURCETYPE UIImagePickerControllerSourceTypeCamera

// does the device have a camera?
if ([UIImagePickerController isSourceTypeAvailable:SOURCETYPE]) {
  // if so, does that camera support video?
  NSArray *mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:SOURCETYPE];
  bool isA3GS = [mediaTypes containsObject:kUTTypeMovie];
}
Tom Gullen
Looks spot on, thanks.
Jim Blackler