次のコーディングを使用してビデオを撮影していますが、これで奇妙な問題に直面しています。以下のコーディングは、iPad iOS6、iPad iOS5、iPhone iOS6 デバイスでは問題なく動作しますが、iPod iOS5、iPhone4S iOS5 ではクラッシュします。
UIImagePickerController *cameraUI = [[UIImagePickerController alloc] init];
cameraUI.sourceType = UIImagePickerControllerSourceTypeCamera;
// Hides the controls for moving & scaling pictures, or for
// trimming movies. To instead show the controls, use YES.
cameraUI.allowsEditing = YES;
cameraUI.delegate = self.objVideoAnalysis;
cameraUI.showsCameraControls = NO;
cameraUI.navigationBarHidden = YES;
cameraUI.toolbarHidden = YES;
// Displays a control that allows the user to choose movie capture
cameraUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
cameraUI.cameraCaptureMode = UIImagePickerControllerCameraCaptureModeVideo;
//cameraUI.videoQuality = UIImagePickerControllerQualityTypeHigh;
//set Overlay View for recording
VideoRecorderOverlayView *objOverlay = [[VideoRecorderOverlayView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
objOverlay.objVideoRecorder = cameraUI;
cameraUI.cameraOverlayView = objOverlay;
[objOverlay release];
[self presentModalViewController:cameraUI animated: YES];
前もってありがとう、ガネーシャ。