私のアプリケーションはpotrateモードを実行していますが、横向きモードでビデオを録画したいと思います。
self.imgPicker = [[UIImagePickerController alloc] init];
self.imgPicker.editing=FALSE;
//self.imgPicker.allowsImageEditing = YES;
self.imgPicker.delegate = (id)self;
[self.imgPicker shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationLandscapeRight];
//self.imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
#if !(TARGET_IPHONE_SIMULATOR)
self.imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera;
#endif
imgPicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
NSArray *mediaTypesAllowed = [NSArray arrayWithObject:@"public.movie"];
[imgPicker setMediaTypes:mediaTypesAllowed];
[self.imgPicker shouldAutorotateToInterfaceOrientation: UIInterfaceOrientationLandscapeRight];
[self presentModalViewController:imgPicker animated:YES];
UIImagePickerController
デフォルトでランドスケープモードでロードしたい。
同じ方法を教えてください。